{
  "openapi": "3.1.0",
  "info": {
    "title": "DualEntry Public API",
    "version": "2.0.0",
    "description": ""
  },
  "paths": {
    "/public/v2/health/": {
      "get": {
        "operationId": "core_api_public_public_router_health_check",
        "summary": "API Health Check",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "title": "Response",
                  "type": "object"
                }
              }
            }
          }
        },
        "description": "Verify that the DualEntry Public API is operational and accepting requests.\n\nThis endpoint provides a quick way to:\n- Confirm API connectivity\n- Validate that your API key is working correctly\n- Check service availability for monitoring and uptime tracking\n\n**Response includes:**\n- `status`: Current health status of the API\n- `timestamp`: Current server time in ISO 8601 format\n\n**Note:** This endpoint is rate-limited like all other API endpoints. For high-frequency monitoring, consider using a dedicated monitoring service or increasing your rate limit.",
        "tags": [
          "Health"
        ],
        "x-mint": {
          "metadata": {
            "description": "Verify that the DualEntry Public API is operational and accepting requests."
          },
          "content": "This endpoint provides a quick way to:\n- Confirm API connectivity\n- Validate that your API key is working correctly\n- Check service availability for monitoring and uptime tracking\n\n**Response includes:**\n- `status`: Current health status of the API\n- `timestamp`: Current server time in ISO 8601 format\n\n**Note:** This endpoint is rate-limited like all other API endpoints. For high-frequency monitoring, consider using a dedicated monitoring service or increasing your rate limit."
        }
      }
    },
    "/public/v2/invoices/": {
      "get": {
        "operationId": "list_Invoice_records",
        "summary": "List Invoice records",
        "parameters": [
          {
            "in": "query",
            "name": "integration_sources",
            "schema": {
              "title": "Integration Sources",
              "items": {
                "$ref": "#/components/schemas/IntegrationSourceSlug"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "due_date",
            "schema": {
              "title": "Due Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "due_date_until",
            "schema": {
              "title": "Due Date Until",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "title": "Transaction Currency",
              "items": {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "payment_status",
            "schema": {
              "title": "Payment Status",
              "items": {
                "$ref": "#/components/schemas/InvoicePaymentStatus"
              },
              "uniqueItems": true,
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "recurring_record_number",
            "schema": {
              "title": "Recurring Record Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_gte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Gte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_lte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Lte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_due_gte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Due Gte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_due_lte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Due Lte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_due_updated_at_gte",
            "schema": {
              "description": "Return invoices whose `amount_due_updated_at` is greater than or equal to this timestamp.",
              "title": "Amount Due Updated At Gte",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Return invoices whose `amount_due_updated_at` is greater than or equal to this timestamp."
          },
          {
            "in": "query",
            "name": "amount_due_updated_at_lte",
            "schema": {
              "description": "Return invoices whose `amount_due_updated_at` is less than or equal to this timestamp.",
              "title": "Amount Due Updated At Lte",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Return invoices whose `amount_due_updated_at` is less than or equal to this timestamp."
          },
          {
            "in": "query",
            "name": "e_invoice_status",
            "schema": {
              "description": "Keep the invoices whose e-invoice filing has one of these statuses. `needs_attention` and `none` add to the statuses.",
              "title": "E Invoice Status",
              "items": {
                "$ref": "#/components/schemas/EInvoiceStatusFilter"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Keep the invoices whose e-invoice filing has one of these statuses. `needs_attention` and `none` add to the statuses."
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicInvoiceListSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of Invoice records with filtering and ordering options.",
        "tags": [
          "Invoices"
        ]
      },
      "post": {
        "operationId": "create_Invoice_record",
        "summary": "Create Invoice record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicInvoiceSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create an invoice.\n\nA posted invoice writes general ledger entries. Those entries debit accounts receivable and credit income or a deferral account. Tax and discounts write their own entries. A draft does not post those entries.\n\nWhen you send `contract_id` or `sales_order_id`, DualEntry links that contract or sales order.\n\nWhen you create an invoice and send neither `billing_address` nor `shipping_address`, DualEntry copies the address saved on the customer to both fields.\n\nThe tax on each line stays as you send it. Set `auto_calculate_tax` to `required` and DualEntry calculates the tax and replaces it before saving the invoice.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST. If the result is DualEntry's own VAT or GST, the request fails with `422`. A calculation that cannot finish also fails with `422`.\n\nDualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer. On an update, the calculation also copies the customer's saved address to both fields when you send neither address.\n\nTo email the invoice, call the send endpoint. To download the PDF, call the pdf endpoint.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this request posts the invoice and the company files e-invoices in its country, DualEntry checks the e-invoice with the authority and queues the filing. The check can take up to 10 seconds.\n\n**Additional validations**\n- Fails with `422` if the e-invoice of the posted record has data that the authority refuses. The `e_invoicing` key lists the reasons.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Invoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicInvoiceSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create an invoice."
          },
          "content": "A posted invoice writes general ledger entries. Those entries debit accounts receivable and credit income or a deferral account. Tax and discounts write their own entries. A draft does not post those entries.\n\nWhen you send `contract_id` or `sales_order_id`, DualEntry links that contract or sales order.\n\nWhen you create an invoice and send neither `billing_address` nor `shipping_address`, DualEntry copies the address saved on the customer to both fields.\n\nThe tax on each line stays as you send it. Set `auto_calculate_tax` to `required` and DualEntry calculates the tax and replaces it before saving the invoice.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST. If the result is DualEntry's own VAT or GST, the request fails with `422`. A calculation that cannot finish also fails with `422`.\n\nDualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer. On an update, the calculation also copies the customer's saved address to both fields when you send neither address.\n\nTo email the invoice, call the send endpoint. To download the PDF, call the pdf endpoint.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this request posts the invoice and the company files e-invoices in its country, DualEntry checks the e-invoice with the authority and queues the filing. The check can take up to 10 seconds.\n\n**Additional validations**\n- Fails with `422` if the e-invoice of the posted record has data that the authority refuses. The `e_invoicing` key lists the reasons.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/invoices/{record_number}/": {
      "get": {
        "operationId": "get_Invoice_record",
        "summary": "Get Invoice record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "integration_sources",
            "schema": {
              "title": "Integration Sources",
              "items": {
                "$ref": "#/components/schemas/IntegrationSourceSlug"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "due_date",
            "schema": {
              "title": "Due Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "due_date_until",
            "schema": {
              "title": "Due Date Until",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "title": "Transaction Currency",
              "items": {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "payment_status",
            "schema": {
              "title": "Payment Status",
              "items": {
                "$ref": "#/components/schemas/InvoicePaymentStatus"
              },
              "uniqueItems": true,
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "recurring_record_number",
            "schema": {
              "title": "Recurring Record Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_gte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Gte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_lte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Lte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_due_gte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Due Gte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_due_lte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Due Lte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_due_updated_at_gte",
            "schema": {
              "description": "Return invoices whose `amount_due_updated_at` is greater than or equal to this timestamp.",
              "title": "Amount Due Updated At Gte",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Return invoices whose `amount_due_updated_at` is greater than or equal to this timestamp."
          },
          {
            "in": "query",
            "name": "amount_due_updated_at_lte",
            "schema": {
              "description": "Return invoices whose `amount_due_updated_at` is less than or equal to this timestamp.",
              "title": "Amount Due Updated At Lte",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Return invoices whose `amount_due_updated_at` is less than or equal to this timestamp."
          },
          {
            "in": "query",
            "name": "e_invoice_status",
            "schema": {
              "description": "Keep the invoices whose e-invoice filing has one of these statuses. `needs_attention` and `none` add to the statuses.",
              "title": "E Invoice Status",
              "items": {
                "$ref": "#/components/schemas/EInvoiceStatusFilter"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Keep the invoices whose e-invoice filing has one of these statuses. `needs_attention` and `none` add to the statuses."
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicInvoiceSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific Invoice record by its record number with all related data.",
        "tags": [
          "Invoices"
        ]
      },
      "put": {
        "operationId": "update_Invoice_record",
        "summary": "Update Invoice record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicInvoiceSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Replace an invoice.\n\nA posted invoice writes general ledger entries. Those entries debit accounts receivable and credit income or a deferral account. Tax and discounts write their own entries. A draft does not post those entries.\n\nWhen you send `contract_id` or `sales_order_id`, DualEntry links that contract or sales order.\n\nWhen you create an invoice and send neither `billing_address` nor `shipping_address`, DualEntry copies the address saved on the customer to both fields.\n\nThe tax on each line stays as you send it. Set `auto_calculate_tax` to `required` and DualEntry calculates the tax and replaces it before saving the invoice.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST. If the result is DualEntry's own VAT or GST, the request fails with `422`. A calculation that cannot finish also fails with `422`.\n\nDualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer. On an update, the calculation also copies the customer's saved address to both fields when you send neither address.\n\nTo email the invoice, call the send endpoint. To download the PDF, call the pdf endpoint.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this request posts the invoice and the company files e-invoices in its country, DualEntry checks the e-invoice with the authority and queues the filing. The check can take up to 10 seconds.\n\n**Additional validations**\n- Fails with `422` if the e-invoice filing of the invoice runs or the authority cleared it. An archive gets the same answer. The `e_invoicing` key holds the reason. Correct a cleared invoice with a customer credit.\n- Fails with `422` if the e-invoice of the posted record has data that the authority refuses. The `e_invoicing` key lists the reasons.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Invoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicInvoiceSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Replace an invoice."
          },
          "content": "A posted invoice writes general ledger entries. Those entries debit accounts receivable and credit income or a deferral account. Tax and discounts write their own entries. A draft does not post those entries.\n\nWhen you send `contract_id` or `sales_order_id`, DualEntry links that contract or sales order.\n\nWhen you create an invoice and send neither `billing_address` nor `shipping_address`, DualEntry copies the address saved on the customer to both fields.\n\nThe tax on each line stays as you send it. Set `auto_calculate_tax` to `required` and DualEntry calculates the tax and replaces it before saving the invoice.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST. If the result is DualEntry's own VAT or GST, the request fails with `422`. A calculation that cannot finish also fails with `422`.\n\nDualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer. On an update, the calculation also copies the customer's saved address to both fields when you send neither address.\n\nTo email the invoice, call the send endpoint. To download the PDF, call the pdf endpoint.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this request posts the invoice and the company files e-invoices in its country, DualEntry checks the e-invoice with the authority and queues the filing. The check can take up to 10 seconds.\n\n**Additional validations**\n- Fails with `422` if the e-invoice filing of the invoice runs or the authority cleared it. An archive gets the same answer. The `e_invoicing` key holds the reason. Correct a cleared invoice with a customer credit.\n- Fails with `422` if the e-invoice of the posted record has data that the authority refuses. The `e_invoicing` key lists the reasons.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      },
      "patch": {
        "operationId": "patch_Invoice_record",
        "summary": "Update Invoice record (partial)",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicInvoiceSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Change only the fields you send. Other fields stay as they are. Period locks, payments, and approval rules match the full update.\n\nA posted invoice writes general ledger entries. Those entries debit accounts receivable and credit income or a deferral account. Tax and discounts write their own entries. A draft does not post those entries.\n\nWhen you send `contract_id` or `sales_order_id`, DualEntry links that contract or sales order.\n\nWhen you create an invoice and send neither `billing_address` nor `shipping_address`, DualEntry copies the address saved on the customer to both fields.\n\nThe tax on each line stays as you send it. Set `auto_calculate_tax` to `required` and DualEntry calculates the tax and replaces it before saving the invoice.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST. If the result is DualEntry's own VAT or GST, the request fails with `422`. A calculation that cannot finish also fails with `422`.\n\nDualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer. On an update, the calculation also copies the customer's saved address to both fields when you send neither address.\n\nTo email the invoice, call the send endpoint. To download the PDF, call the pdf endpoint.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this request posts the invoice and the company files e-invoices in its country, DualEntry checks the e-invoice with the authority and queues the filing. The check can take up to 10 seconds.\n\n**Additional validations**\n- Fails with `422` if the e-invoice filing of the invoice runs or the authority cleared it. An archive gets the same answer. The `e_invoicing` key holds the reason. Correct a cleared invoice with a customer credit.\n- Fails with `422` if the e-invoice of the posted record has data that the authority refuses. The `e_invoicing` key lists the reasons.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Invoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicInvoiceSchemaPatchIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Change only the fields you send."
          },
          "content": "Other fields stay as they are. Period locks, payments, and approval rules match the full update.\n\nA posted invoice writes general ledger entries. Those entries debit accounts receivable and credit income or a deferral account. Tax and discounts write their own entries. A draft does not post those entries.\n\nWhen you send `contract_id` or `sales_order_id`, DualEntry links that contract or sales order.\n\nWhen you create an invoice and send neither `billing_address` nor `shipping_address`, DualEntry copies the address saved on the customer to both fields.\n\nThe tax on each line stays as you send it. Set `auto_calculate_tax` to `required` and DualEntry calculates the tax and replaces it before saving the invoice.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST. If the result is DualEntry's own VAT or GST, the request fails with `422`. A calculation that cannot finish also fails with `422`.\n\nDualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer. On an update, the calculation also copies the customer's saved address to both fields when you send neither address.\n\nTo email the invoice, call the send endpoint. To download the PDF, call the pdf endpoint.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this request posts the invoice and the company files e-invoices in its country, DualEntry checks the e-invoice with the authority and queues the filing. The check can take up to 10 seconds.\n\n**Additional validations**\n- Fails with `422` if the e-invoice filing of the invoice runs or the authority cleared it. An archive gets the same answer. The `e_invoicing` key holds the reason. Correct a cleared invoice with a customer credit.\n- Fails with `422` if the e-invoice of the posted record has data that the authority refuses. The `e_invoicing` key lists the reasons.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/invoices/{record_number}/attachments/": {
      "post": {
        "operationId": "create_Invoice_record_attachments",
        "summary": "Create Invoice record attachments",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicInvoiceSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Upload files onto an invoice. This call does not post to the general ledger and does not send email.",
        "tags": [
          "Invoices"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "files": {
                    "items": {
                      "format": "binary",
                      "type": "string"
                    },
                    "title": "Files",
                    "type": "array"
                  }
                },
                "required": [
                  "files"
                ],
                "title": "FileParams",
                "type": "object"
              }
            }
          },
          "required": true
        }
      }
    },
    "/public/v2/invoices/{record_number}/attachments/replace/": {
      "post": {
        "operationId": "replace_Invoice_record_attachments",
        "summary": "Replace Invoice record attachments",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicInvoiceSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Replace every file on an invoice. Existing files are marked deleted. This call does not post to the general ledger and does not send email.",
        "tags": [
          "Invoices"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "files": {
                    "items": {
                      "format": "binary",
                      "type": "string"
                    },
                    "title": "Files",
                    "type": "array"
                  }
                },
                "required": [
                  "files"
                ],
                "title": "FileParams",
                "type": "object"
              }
            }
          },
          "required": true
        }
      }
    },
    "/public/v2/invoices/{record_number}/lines/": {
      "get": {
        "operationId": "list_Invoice_record_lines",
        "summary": "List Invoice record lines",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "integration_sources",
            "schema": {
              "title": "Integration Sources",
              "items": {
                "$ref": "#/components/schemas/IntegrationSourceSlug"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "due_date",
            "schema": {
              "title": "Due Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "due_date_until",
            "schema": {
              "title": "Due Date Until",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "title": "Transaction Currency",
              "items": {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "payment_status",
            "schema": {
              "title": "Payment Status",
              "items": {
                "$ref": "#/components/schemas/InvoicePaymentStatus"
              },
              "uniqueItems": true,
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "recurring_record_number",
            "schema": {
              "title": "Recurring Record Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_gte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Gte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_lte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Lte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_due_gte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Due Gte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_due_lte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Due Lte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_due_updated_at_gte",
            "schema": {
              "description": "Return invoices whose `amount_due_updated_at` is greater than or equal to this timestamp.",
              "title": "Amount Due Updated At Gte",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Return invoices whose `amount_due_updated_at` is greater than or equal to this timestamp."
          },
          {
            "in": "query",
            "name": "amount_due_updated_at_lte",
            "schema": {
              "description": "Return invoices whose `amount_due_updated_at` is less than or equal to this timestamp.",
              "title": "Amount Due Updated At Lte",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Return invoices whose `amount_due_updated_at` is less than or equal to this timestamp."
          },
          {
            "in": "query",
            "name": "e_invoice_status",
            "schema": {
              "description": "Keep the invoices whose e-invoice filing has one of these statuses. `needs_attention` and `none` add to the statuses.",
              "title": "E Invoice Status",
              "items": {
                "$ref": "#/components/schemas/EInvoiceStatusFilter"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Keep the invoices whose e-invoice filing has one of these statuses. `needs_attention` and `none` add to the statuses."
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicInvoiceItemOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of lines for a specific Invoice record, ordered by position.",
        "tags": [
          "Invoices"
        ]
      }
    },
    "/public/v2/invoices/{record_number}/send/": {
      "post": {
        "operationId": "send_Invoice_record",
        "summary": "Send Invoice record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Send an existing invoice by email, with the invoice PDF attached.\n\nThe path `{record_number}` is the invoice `number`.\n\nThe body matches `POST /api/email_send/invoice/` (`to_emails`, `cc_emails`, `bcc_emails`,\n`subject`, `message`, `sandbox`). The worker asks the PDF service for the invoice PDF.\nIf `subject` or `message` is omitted or empty,\ncompany invoice email templates are used, then organization defaults.\n\nIf `to_emails` is omitted or empty, the customer email on the invoice is used.\n\nA 200 response means the send was accepted, not that\nthe provider has delivered the message. Emails are sent in the background.\n\nIn Belgium, Sweden and Germany, the Peppol network delivers the e-invoice when DualEntry files it.\nThis email sends the same invoice to the customer as a copy.\n\nThis call does not post to the general ledger.\n\n**Additional validations**\n- Fails with `422` and `error_code` `e_invoicing_send_held` if the authority must clear the e-invoice before the customer gets it (Italy, Mexico, Spain and Argentina), or with `error_code` `e_invoicing_legal_pdf_missing` if the authority PDF is not stored yet. The `e_invoicing` key holds the reason. Send again after the authority clears the invoice.",
        "tags": [
          "Invoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicInvoiceSendSchemaIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Send an existing invoice by email, with the invoice PDF attached."
          },
          "content": "The path `{record_number}` is the invoice `number`.\n\nThe body matches `POST /api/email_send/invoice/` (`to_emails`, `cc_emails`, `bcc_emails`,\n`subject`, `message`, `sandbox`). The worker asks the PDF service for the invoice PDF.\nIf `subject` or `message` is omitted or empty,\ncompany invoice email templates are used, then organization defaults.\n\nIf `to_emails` is omitted or empty, the customer email on the invoice is used.\n\nA 200 response means the send was accepted, not that\nthe provider has delivered the message. Emails are sent in the background.\n\nIn Belgium, Sweden and Germany, the Peppol network delivers the e-invoice when DualEntry files it.\nThis email sends the same invoice to the customer as a copy.\n\nThis call does not post to the general ledger.\n\n**Additional validations**\n- Fails with `422` and `error_code` `e_invoicing_send_held` if the authority must clear the e-invoice before the customer gets it (Italy, Mexico, Spain and Argentina), or with `error_code` `e_invoicing_legal_pdf_missing` if the authority PDF is not stored yet. The `e_invoicing` key holds the reason. Send again after the authority clears the invoice."
        }
      }
    },
    "/public/v2/invoices/{record_number}/pdf/": {
      "get": {
        "operationId": "download_Invoice_pdf",
        "summary": "Download Invoice PDF",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Download the PDF of an existing invoice.\n\nThe path `{record_number}` is the invoice `number`.\n\nThe response is the PDF file (`Content-Type: application/pdf`), not a URL.\nDraft, posted, and archived invoices are allowed.\n\nDraft risk: this MVP does not add a DRAFT watermark on the PDF. Calling this\nendpoint does not freeze the invoice template or language. A draft PDF can change\nas the invoice is edited.\n\nWhen the invoice has an e-invoice filing that requires an authority PDF, that PDF\nis returned instead of the DualEntry PDF.\n\nThis call does not send email and does not post to the general ledger.\n\n**Additional validations**\n- Fails with `422` and `error_code` `e_invoicing_send_held` if the authority must clear the e-invoice before the customer gets it (Italy, Mexico, Spain and Argentina), or with `error_code` `e_invoicing_legal_pdf_missing` if the authority PDF is not stored yet. The `e_invoicing` key holds the reason. Send again after the authority clears the invoice.",
        "tags": [
          "Invoices"
        ],
        "x-mint": {
          "metadata": {
            "description": "Download the PDF of an existing invoice."
          },
          "content": "The path `{record_number}` is the invoice `number`.\n\nThe response is the PDF file (`Content-Type: application/pdf`), not a URL.\nDraft, posted, and archived invoices are allowed.\n\nDraft risk: this MVP does not add a DRAFT watermark on the PDF. Calling this\nendpoint does not freeze the invoice template or language. A draft PDF can change\nas the invoice is edited.\n\nWhen the invoice has an e-invoice filing that requires an authority PDF, that PDF\nis returned instead of the DualEntry PDF.\n\nThis call does not send email and does not post to the general ledger.\n\n**Additional validations**\n- Fails with `422` and `error_code` `e_invoicing_send_held` if the authority must clear the e-invoice before the customer gets it (Italy, Mexico, Spain and Argentina), or with `error_code` `e_invoicing_legal_pdf_missing` if the authority PDF is not stored yet. The `e_invoicing` key holds the reason. Send again after the authority clears the invoice."
        }
      }
    },
    "/public/v2/sales-orders/": {
      "get": {
        "operationId": "list_SalesOrder_records",
        "summary": "List SalesOrder records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "invoiced_status",
            "schema": {
              "title": "Invoiced Status",
              "items": {
                "$ref": "#/components/schemas/SalesOrderInvoicedStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicSalesOrderSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of SalesOrder records with filtering and ordering options.",
        "tags": [
          "Sales Orders"
        ]
      },
      "post": {
        "operationId": "create_SalesOrder_record",
        "summary": "Create SalesOrder record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicSalesOrderSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new SalesOrder record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Sales Orders"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicSalesOrderSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new SalesOrder record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/sales-orders/{record_number}/": {
      "get": {
        "operationId": "get_SalesOrder_record",
        "summary": "Get SalesOrder record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "invoiced_status",
            "schema": {
              "title": "Invoiced Status",
              "items": {
                "$ref": "#/components/schemas/SalesOrderInvoicedStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicSalesOrderSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific SalesOrder record by its record number with all related data.",
        "tags": [
          "Sales Orders"
        ]
      },
      "put": {
        "operationId": "update_SalesOrder_record",
        "summary": "Update SalesOrder record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicSalesOrderSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing SalesOrder record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Sales Orders"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicSalesOrderSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing SalesOrder record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/sales-orders/{record_number}/attachments/": {
      "post": {
        "operationId": "create_SalesOrder_record_attachments",
        "summary": "Create SalesOrder record attachments",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicSalesOrderSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Upload attachments to a SalesOrder record.",
        "tags": [
          "Sales Orders"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "files": {
                    "items": {
                      "format": "binary",
                      "type": "string"
                    },
                    "title": "Files",
                    "type": "array"
                  }
                },
                "required": [
                  "files"
                ],
                "title": "FileParams",
                "type": "object"
              }
            }
          },
          "required": true
        }
      }
    },
    "/public/v2/sales-orders/{record_number}/lines/": {
      "get": {
        "operationId": "list_SalesOrder_record_lines",
        "summary": "List SalesOrder record lines",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "invoiced_status",
            "schema": {
              "title": "Invoiced Status",
              "items": {
                "$ref": "#/components/schemas/SalesOrderInvoicedStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicSalesOrderItemOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of lines for a specific SalesOrder record, ordered by position.",
        "tags": [
          "Sales Orders"
        ]
      }
    },
    "/public/v2/bills/": {
      "get": {
        "operationId": "list_Bill_records",
        "summary": "List Bill records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ap_account_id",
            "schema": {
              "description": "Return bills posted to any of these AP account IDs.",
              "title": "Ap Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Return bills posted to any of these AP account IDs."
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "due_date",
            "schema": {
              "title": "Due Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicBillSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of Bill records with filtering and ordering options.",
        "tags": [
          "Bills"
        ]
      },
      "post": {
        "operationId": "create_Bill_record",
        "summary": "Create Bill record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBillSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new Bill record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when the AP account is missing, inactive, of a type that is not allowed, in another company, or not the intercompany AP account on an intercompany record.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Bills"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicBillSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new Bill record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when the AP account is missing, inactive, of a type that is not allowed, in another company, or not the intercompany AP account on an intercompany record.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/bills/{record_number}/": {
      "get": {
        "operationId": "get_Bill_record",
        "summary": "Get Bill record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ap_account_id",
            "schema": {
              "description": "Return bills posted to any of these AP account IDs.",
              "title": "Ap Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Return bills posted to any of these AP account IDs."
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "due_date",
            "schema": {
              "title": "Due Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBillSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific Bill record by its record number with all related data.",
        "tags": [
          "Bills"
        ]
      },
      "put": {
        "operationId": "update_Bill_record",
        "summary": "Update Bill record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBillSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing Bill record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when the AP account is missing, inactive, of a type that is not allowed, in another company, or not the intercompany AP account on an intercompany record.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Bills"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicBillSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing Bill record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when the AP account is missing, inactive, of a type that is not allowed, in another company, or not the intercompany AP account on an intercompany record.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      },
      "patch": {
        "operationId": "patch_Bill_record",
        "summary": "Update Bill record (partial)",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBillSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Partially update an existing Bill record. Send only the fields you want to change. Anything you don't send stays as it is. Updates are subject to the same constraints as the full update endpoint: period locks, payment-applied restrictions, and approval-workflow rules apply.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when the AP account is missing, inactive, of a type that is not allowed, in another company, or not the intercompany AP account on an intercompany record.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Bills"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicBillSchemaPatchIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Partially update an existing Bill record."
          },
          "content": "Send only the fields you want to change. Anything you don't send stays as it is. Updates are subject to the same constraints as the full update endpoint: period locks, payment-applied restrictions, and approval-workflow rules apply.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when the AP account is missing, inactive, of a type that is not allowed, in another company, or not the intercompany AP account on an intercompany record.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/bills/{record_number}/attachments/": {
      "post": {
        "operationId": "create_Bill_record_attachments",
        "summary": "Create Bill record attachments",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBillSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Upload attachments to a Bill record.",
        "tags": [
          "Bills"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "files": {
                    "items": {
                      "format": "binary",
                      "type": "string"
                    },
                    "title": "Files",
                    "type": "array"
                  }
                },
                "required": [
                  "files"
                ],
                "title": "FileParams",
                "type": "object"
              }
            }
          },
          "required": true
        }
      }
    },
    "/public/v2/bills/{record_number}/lines/": {
      "get": {
        "operationId": "list_Bill_record_lines",
        "summary": "List Bill record lines",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ap_account_id",
            "schema": {
              "description": "Return bills posted to any of these AP account IDs.",
              "title": "Ap Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Return bills posted to any of these AP account IDs."
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "due_date",
            "schema": {
              "title": "Due Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicBillLineOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of lines for a specific Bill record, ordered by position.",
        "tags": [
          "Bills"
        ]
      }
    },
    "/public/v2/journal-entries/": {
      "get": {
        "operationId": "list_JournalEntry_records",
        "summary": "List JournalEntry records",
        "parameters": [
          {
            "in": "query",
            "name": "integration_sources",
            "schema": {
              "title": "Integration Sources",
              "items": {
                "$ref": "#/components/schemas/IntegrationSourceSlug"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "account_id",
            "schema": {
              "title": "Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "related_journal_entry_number",
            "schema": {
              "description": "Filter by the number of the related journal entry.",
              "title": "Related Journal Entry Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by the number of the related journal entry."
          },
          {
            "in": "query",
            "name": "accrual_template_id",
            "schema": {
              "title": "Accrual Template Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_adjusting_entry",
            "schema": {
              "title": "Is Adjusting Entry",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_gte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Gte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_lte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Lte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "created_by_id",
            "schema": {
              "title": "Created By Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "created_by_name",
            "schema": {
              "title": "Created By Name",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicJournalEntrySchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of JournalEntry records with filtering and ordering options.",
        "tags": [
          "Journal Entries"
        ]
      },
      "post": {
        "operationId": "create_JournalEntry_record",
        "summary": "Create JournalEntry record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicJournalEntrySchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new JournalEntry record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If a line sets `eliminated` to `true`, DualEntry writes an elimination transaction in the elimination company, with the date, memo, and status of the entry. If the entry has a reversal, DualEntry writes a second elimination transaction for that reversal, with the date, memo, and status of the reversal.\n- If you send a line with both a `debit` and a `credit`, DualEntry stores the difference on the larger side. For example, a line with a `debit` of `5.00` and a `credit` of `2.00` becomes a `debit` of `3.00`. DualEntry stores a negative `debit` as a `credit`, and a negative `credit` as a `debit`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the line's company, or to the record's company when the line sets none.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Journal Entries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicJournalEntrySchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new JournalEntry record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If a line sets `eliminated` to `true`, DualEntry writes an elimination transaction in the elimination company, with the date, memo, and status of the entry. If the entry has a reversal, DualEntry writes a second elimination transaction for that reversal, with the date, memo, and status of the reversal.\n- If you send a line with both a `debit` and a `credit`, DualEntry stores the difference on the larger side. For example, a line with a `debit` of `5.00` and a `credit` of `2.00` becomes a `debit` of `3.00`. DualEntry stores a negative `debit` as a `credit`, and a negative `credit` as a `debit`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the line's company, or to the record's company when the line sets none.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/journal-entries/{record_number}/": {
      "get": {
        "operationId": "get_JournalEntry_record",
        "summary": "Get JournalEntry record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "integration_sources",
            "schema": {
              "title": "Integration Sources",
              "items": {
                "$ref": "#/components/schemas/IntegrationSourceSlug"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "account_id",
            "schema": {
              "title": "Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "related_journal_entry_number",
            "schema": {
              "description": "Filter by the number of the related journal entry.",
              "title": "Related Journal Entry Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by the number of the related journal entry."
          },
          {
            "in": "query",
            "name": "accrual_template_id",
            "schema": {
              "title": "Accrual Template Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_adjusting_entry",
            "schema": {
              "title": "Is Adjusting Entry",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_gte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Gte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_lte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Lte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "created_by_id",
            "schema": {
              "title": "Created By Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "created_by_name",
            "schema": {
              "title": "Created By Name",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicJournalEntrySchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific JournalEntry record by its record number with all related data.",
        "tags": [
          "Journal Entries"
        ]
      },
      "put": {
        "operationId": "update_JournalEntry_record",
        "summary": "Update JournalEntry record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicJournalEntrySchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing JournalEntry record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If a line sets `eliminated` to `true`, DualEntry writes an elimination transaction in the elimination company, with the date, memo, and status of the entry. If the entry has a reversal, DualEntry writes a second elimination transaction for that reversal, with the date, memo, and status of the reversal.\n- If no line sets `eliminated`, DualEntry removes the elimination transaction and the reversal elimination transaction of this journal entry. If you remove the reversal and a line stays `eliminated`, DualEntry removes only the reversal elimination transaction.\n- If you send a line with both a `debit` and a `credit`, DualEntry stores the difference on the larger side. For example, a line with a `debit` of `5.00` and a `credit` of `2.00` becomes a `debit` of `3.00`. DualEntry stores a negative `debit` as a `credit`, and a negative `credit` as a `debit`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the line's company, or to the record's company when the line sets none.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Journal Entries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicJournalEntrySchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing JournalEntry record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If a line sets `eliminated` to `true`, DualEntry writes an elimination transaction in the elimination company, with the date, memo, and status of the entry. If the entry has a reversal, DualEntry writes a second elimination transaction for that reversal, with the date, memo, and status of the reversal.\n- If no line sets `eliminated`, DualEntry removes the elimination transaction and the reversal elimination transaction of this journal entry. If you remove the reversal and a line stays `eliminated`, DualEntry removes only the reversal elimination transaction.\n- If you send a line with both a `debit` and a `credit`, DualEntry stores the difference on the larger side. For example, a line with a `debit` of `5.00` and a `credit` of `2.00` becomes a `debit` of `3.00`. DualEntry stores a negative `debit` as a `credit`, and a negative `credit` as a `debit`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the line's company, or to the record's company when the line sets none.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/journal-entries/{record_number}/attachments/": {
      "post": {
        "operationId": "create_JournalEntry_record_attachments",
        "summary": "Create JournalEntry record attachments",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicJournalEntrySchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Upload attachments to a JournalEntry record.",
        "tags": [
          "Journal Entries"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "files": {
                    "items": {
                      "format": "binary",
                      "type": "string"
                    },
                    "title": "Files",
                    "type": "array"
                  }
                },
                "required": [
                  "files"
                ],
                "title": "FileParams",
                "type": "object"
              }
            }
          },
          "required": true
        }
      }
    },
    "/public/v2/journal-entries/{record_number}/lines/": {
      "get": {
        "operationId": "list_JournalEntry_record_lines",
        "summary": "List JournalEntry record lines",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "integration_sources",
            "schema": {
              "title": "Integration Sources",
              "items": {
                "$ref": "#/components/schemas/IntegrationSourceSlug"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "account_id",
            "schema": {
              "title": "Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "related_journal_entry_number",
            "schema": {
              "description": "Filter by the number of the related journal entry.",
              "title": "Related Journal Entry Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by the number of the related journal entry."
          },
          {
            "in": "query",
            "name": "accrual_template_id",
            "schema": {
              "title": "Accrual Template Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_adjusting_entry",
            "schema": {
              "title": "Is Adjusting Entry",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_gte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Gte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_lte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Lte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "created_by_id",
            "schema": {
              "title": "Created By Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "created_by_name",
            "schema": {
              "title": "Created By Name",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicJournalEntryV2ItemOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of lines for a specific JournalEntry record, ordered by position.",
        "tags": [
          "Journal Entries"
        ]
      }
    },
    "/public/v2/purchase-orders/": {
      "get": {
        "operationId": "list_PurchaseOrder_records",
        "summary": "List PurchaseOrder records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "billed",
            "schema": {
              "title": "Billed",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "unbilled",
            "schema": {
              "title": "Unbilled",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "partially_billed",
            "schema": {
              "title": "Partially Billed",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "billed_status",
            "schema": {
              "default": [],
              "items": {
                "enum": [
                  "billed",
                  "unbilled",
                  "partially_billed"
                ],
                "title": "PurchaseOrderBilledStatus",
                "type": "string"
              },
              "title": "Billed Status",
              "type": "array",
              "uniqueItems": true
            },
            "required": false
          },
          {
            "in": "query",
            "name": "lifecycle_status",
            "schema": {
              "title": "Lifecycle Status",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderLifecycleStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicPurchaseOrderSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of PurchaseOrder records with filtering and ordering options.",
        "tags": [
          "Purchase Orders"
        ]
      },
      "post": {
        "operationId": "create_PurchaseOrder_record",
        "summary": "Create PurchaseOrder record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPurchaseOrderSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new PurchaseOrder record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Purchase Orders"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicPurchaseOrderSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new PurchaseOrder record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/purchase-orders/{record_number}/": {
      "get": {
        "operationId": "get_PurchaseOrder_record",
        "summary": "Get PurchaseOrder record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "billed",
            "schema": {
              "title": "Billed",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "unbilled",
            "schema": {
              "title": "Unbilled",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "partially_billed",
            "schema": {
              "title": "Partially Billed",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "billed_status",
            "schema": {
              "default": [],
              "items": {
                "enum": [
                  "billed",
                  "unbilled",
                  "partially_billed"
                ],
                "title": "PurchaseOrderBilledStatus",
                "type": "string"
              },
              "title": "Billed Status",
              "type": "array",
              "uniqueItems": true
            },
            "required": false
          },
          {
            "in": "query",
            "name": "lifecycle_status",
            "schema": {
              "title": "Lifecycle Status",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderLifecycleStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPurchaseOrderSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific PurchaseOrder record by its record number with all related data.",
        "tags": [
          "Purchase Orders"
        ]
      },
      "put": {
        "operationId": "update_PurchaseOrder_record",
        "summary": "Update PurchaseOrder record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPurchaseOrderSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing PurchaseOrder record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Purchase Orders"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicPurchaseOrderSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing PurchaseOrder record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/purchase-orders/{record_number}/attachments/": {
      "post": {
        "operationId": "create_PurchaseOrder_record_attachments",
        "summary": "Create PurchaseOrder record attachments",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPurchaseOrderSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Upload attachments to a PurchaseOrder record.",
        "tags": [
          "Purchase Orders"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "files": {
                    "items": {
                      "format": "binary",
                      "type": "string"
                    },
                    "title": "Files",
                    "type": "array"
                  }
                },
                "required": [
                  "files"
                ],
                "title": "FileParams",
                "type": "object"
              }
            }
          },
          "required": true
        }
      }
    },
    "/public/v2/purchase-orders/{record_number}/lines/": {
      "get": {
        "operationId": "list_PurchaseOrder_record_lines",
        "summary": "List PurchaseOrder record lines",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "billed",
            "schema": {
              "title": "Billed",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "unbilled",
            "schema": {
              "title": "Unbilled",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "partially_billed",
            "schema": {
              "title": "Partially Billed",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "billed_status",
            "schema": {
              "default": [],
              "items": {
                "enum": [
                  "billed",
                  "unbilled",
                  "partially_billed"
                ],
                "title": "PurchaseOrderBilledStatus",
                "type": "string"
              },
              "title": "Billed Status",
              "type": "array",
              "uniqueItems": true
            },
            "required": false
          },
          {
            "in": "query",
            "name": "lifecycle_status",
            "schema": {
              "title": "Lifecycle Status",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderLifecycleStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicPurchaseOrderLineOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of lines for a specific PurchaseOrder record, ordered by position.",
        "tags": [
          "Purchase Orders"
        ]
      }
    },
    "/public/v2/customer-prepayments/": {
      "get": {
        "operationId": "list_CustomerPrepayment_records",
        "summary": "List CustomerPrepayment records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicCustomerPrepaymentSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of CustomerPrepayment records with filtering and ordering options.",
        "tags": [
          "Customer Prepayments"
        ]
      },
      "post": {
        "operationId": "create_CustomerPrepayment_record",
        "summary": "Create CustomerPrepayment record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerPrepaymentSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new CustomerPrepayment record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Customer Prepayments"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerPrepaymentSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new CustomerPrepayment record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/customer-prepayments/{record_number}/": {
      "get": {
        "operationId": "get_CustomerPrepayment_record",
        "summary": "Get CustomerPrepayment record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerPrepaymentSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific CustomerPrepayment record by its record number with all related data.",
        "tags": [
          "Customer Prepayments"
        ]
      },
      "put": {
        "operationId": "update_CustomerPrepayment_record",
        "summary": "Update CustomerPrepayment record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerPrepaymentSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing CustomerPrepayment record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Customer Prepayments"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerPrepaymentSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing CustomerPrepayment record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      },
      "patch": {
        "operationId": "patch_CustomerPrepayment_record",
        "summary": "Update CustomerPrepayment record (partial)",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerPrepaymentSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Partially update an existing CustomerPrepayment record. Send only the fields you want to change. Anything you don't send stays as it is. Updates are subject to the same constraints as the full update endpoint: period locks, payment-applied restrictions, and approval-workflow rules apply.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Customer Prepayments"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerPrepaymentSchemaPatchIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Partially update an existing CustomerPrepayment record."
          },
          "content": "Send only the fields you want to change. Anything you don't send stays as it is. Updates are subject to the same constraints as the full update endpoint: period locks, payment-applied restrictions, and approval-workflow rules apply.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/customer-prepayments/{record_number}/attachments/": {
      "post": {
        "operationId": "create_CustomerPrepayment_record_attachments",
        "summary": "Create CustomerPrepayment record attachments",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerPrepaymentSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Upload attachments to a CustomerPrepayment record.",
        "tags": [
          "Customer Prepayments"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "files": {
                    "items": {
                      "format": "binary",
                      "type": "string"
                    },
                    "title": "Files",
                    "type": "array"
                  }
                },
                "required": [
                  "files"
                ],
                "title": "FileParams",
                "type": "object"
              }
            }
          },
          "required": true
        }
      }
    },
    "/public/v2/customer-prepayment-applications/": {
      "get": {
        "operationId": "list_CustomerPrepaymentApplication_records",
        "summary": "List CustomerPrepaymentApplication records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicCustomerPrepaymentApplicationSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of CustomerPrepaymentApplication records with filtering and ordering options.",
        "tags": [
          "Customer Prepayment Applications"
        ]
      },
      "post": {
        "operationId": "create_CustomerPrepaymentApplication_record",
        "summary": "Create CustomerPrepaymentApplication record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerPrepaymentApplicationSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new CustomerPrepaymentApplication record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If the customer or vendor is intercompany, DualEntry also writes a transaction in the elimination company.\n- DualEntry recomputes the billable-line status of the invoices linked to this prepayment application.\n\n**Additional validations**\n- Fails with `422` when the `items` amounts total more than the remaining balance of the customer prepayment or customer credit.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Customer Prepayment Applications"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerPrepaymentApplicationSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new CustomerPrepaymentApplication record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If the customer or vendor is intercompany, DualEntry also writes a transaction in the elimination company.\n- DualEntry recomputes the billable-line status of the invoices linked to this prepayment application.\n\n**Additional validations**\n- Fails with `422` when the `items` amounts total more than the remaining balance of the customer prepayment or customer credit.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/customer-prepayment-applications/{record_number}/": {
      "get": {
        "operationId": "get_CustomerPrepaymentApplication_record",
        "summary": "Get CustomerPrepaymentApplication record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerPrepaymentApplicationSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific CustomerPrepaymentApplication record by its record number with all related data.",
        "tags": [
          "Customer Prepayment Applications"
        ]
      },
      "put": {
        "operationId": "update_CustomerPrepaymentApplication_record",
        "summary": "Update CustomerPrepaymentApplication record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerPrepaymentApplicationSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing CustomerPrepaymentApplication record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If the customer or vendor is intercompany, DualEntry also writes a transaction in the elimination company.\n- DualEntry recomputes the billable-line status of the invoices linked to this prepayment application.\n\n**Additional validations**\n- Fails with `422` when the `items` amounts total more than the remaining balance of the customer prepayment or customer credit.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Customer Prepayment Applications"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerPrepaymentApplicationSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing CustomerPrepaymentApplication record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If the customer or vendor is intercompany, DualEntry also writes a transaction in the elimination company.\n- DualEntry recomputes the billable-line status of the invoices linked to this prepayment application.\n\n**Additional validations**\n- Fails with `422` when the `items` amounts total more than the remaining balance of the customer prepayment or customer credit.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      },
      "patch": {
        "operationId": "patch_CustomerPrepaymentApplication_record",
        "summary": "Update CustomerPrepaymentApplication record (partial)",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerPrepaymentApplicationSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Partially update an existing CustomerPrepaymentApplication record. Send only the fields you want to change. Anything you don't send stays as it is. Updates are subject to the same constraints as the full update endpoint: period locks, payment-applied restrictions, and approval-workflow rules apply.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If the customer or vendor is intercompany, DualEntry also writes a transaction in the elimination company.\n- DualEntry recomputes the billable-line status of the invoices linked to this prepayment application.\n\n**Additional validations**\n- Fails with `422` when the `items` amounts total more than the remaining balance of the customer prepayment or customer credit.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Customer Prepayment Applications"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerPrepaymentApplicationSchemaPatchIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Partially update an existing CustomerPrepaymentApplication record."
          },
          "content": "Send only the fields you want to change. Anything you don't send stays as it is. Updates are subject to the same constraints as the full update endpoint: period locks, payment-applied restrictions, and approval-workflow rules apply.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If the customer or vendor is intercompany, DualEntry also writes a transaction in the elimination company.\n- DualEntry recomputes the billable-line status of the invoices linked to this prepayment application.\n\n**Additional validations**\n- Fails with `422` when the `items` amounts total more than the remaining balance of the customer prepayment or customer credit.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/customer-prepayment-applications/{record_number}/attachments/": {
      "post": {
        "operationId": "create_CustomerPrepaymentApplication_record_attachments",
        "summary": "Create CustomerPrepaymentApplication record attachments",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerPrepaymentApplicationSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Upload attachments to a CustomerPrepaymentApplication record.",
        "tags": [
          "Customer Prepayment Applications"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "files": {
                    "items": {
                      "format": "binary",
                      "type": "string"
                    },
                    "title": "Files",
                    "type": "array"
                  }
                },
                "required": [
                  "files"
                ],
                "title": "FileParams",
                "type": "object"
              }
            }
          },
          "required": true
        }
      }
    },
    "/public/v2/customer-prepayment-applications/{record_number}/lines/": {
      "get": {
        "operationId": "list_CustomerPrepaymentApplication_record_lines",
        "summary": "List CustomerPrepaymentApplication record lines",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicCustomerPrepaymentApplicationItemOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of lines for a specific CustomerPrepaymentApplication record, ordered by position.",
        "tags": [
          "Customer Prepayment Applications"
        ]
      }
    },
    "/public/v2/customer-deposits/": {
      "get": {
        "operationId": "list_CustomerDeposit_records",
        "summary": "List CustomerDeposit records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicCustomerDepositSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of CustomerDeposit records with filtering and ordering options.",
        "tags": [
          "Customer Deposits"
        ]
      },
      "post": {
        "operationId": "create_CustomerDeposit_record",
        "summary": "Create CustomerDeposit record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerDepositSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new CustomerDeposit record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Customer Deposits"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerDepositSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new CustomerDeposit record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/customer-deposits/{record_number}/": {
      "get": {
        "operationId": "get_CustomerDeposit_record",
        "summary": "Get CustomerDeposit record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerDepositSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific CustomerDeposit record by its record number with all related data.",
        "tags": [
          "Customer Deposits"
        ]
      },
      "put": {
        "operationId": "update_CustomerDeposit_record",
        "summary": "Update CustomerDeposit record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerDepositSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing CustomerDeposit record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Customer Deposits"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerDepositSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing CustomerDeposit record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/customer-deposits/{record_number}/attachments/": {
      "post": {
        "operationId": "create_CustomerDeposit_record_attachments",
        "summary": "Create CustomerDeposit record attachments",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerDepositSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Upload attachments to a CustomerDeposit record.",
        "tags": [
          "Customer Deposits"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "files": {
                    "items": {
                      "format": "binary",
                      "type": "string"
                    },
                    "title": "Files",
                    "type": "array"
                  }
                },
                "required": [
                  "files"
                ],
                "title": "FileParams",
                "type": "object"
              }
            }
          },
          "required": true
        }
      }
    },
    "/public/v2/customer-deposits/{record_number}/lines/": {
      "get": {
        "operationId": "list_CustomerDeposit_record_lines",
        "summary": "List CustomerDeposit record lines",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicCustomerDepositItemOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of lines for a specific CustomerDeposit record, ordered by position.",
        "tags": [
          "Customer Deposits"
        ]
      }
    },
    "/public/v2/customer-refunds/": {
      "get": {
        "operationId": "list_CustomerRefund_records",
        "summary": "List CustomerRefund records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicCustomerRefundSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of CustomerRefund records with filtering and ordering options.",
        "tags": [
          "Customer Refunds"
        ]
      },
      "post": {
        "operationId": "create_CustomerRefund_record",
        "summary": "Create CustomerRefund record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerRefundSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new CustomerRefund record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- If the record has a bank account and a payment method that prints checks, DualEntry creates a `not_printed` paper check, even if the record is `draft`.\n- If a printed or not-printed paper check already exists, DualEntry skips paper-check creation.\n- If you clear `payment_method_id`, or set it to a payment method that does not print checks, DualEntry sets the associated unprinted paper check to `archived`.\n\n**Additional validations**\n- Fails with `422` if the request changes `check_number` while a paper check is `not_printed`.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Customer Refunds"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerRefundSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new CustomerRefund record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- If the record has a bank account and a payment method that prints checks, DualEntry creates a `not_printed` paper check, even if the record is `draft`.\n- If a printed or not-printed paper check already exists, DualEntry skips paper-check creation.\n- If you clear `payment_method_id`, or set it to a payment method that does not print checks, DualEntry sets the associated unprinted paper check to `archived`.\n\n**Additional validations**\n- Fails with `422` if the request changes `check_number` while a paper check is `not_printed`.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/customer-refunds/{record_number}/": {
      "get": {
        "operationId": "get_CustomerRefund_record",
        "summary": "Get CustomerRefund record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerRefundSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific CustomerRefund record by its record number with all related data.",
        "tags": [
          "Customer Refunds"
        ]
      },
      "put": {
        "operationId": "update_CustomerRefund_record",
        "summary": "Update CustomerRefund record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerRefundSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing CustomerRefund record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- If the record has a bank account and a payment method that prints checks, DualEntry creates a `not_printed` paper check, even if the record is `draft`.\n- If a printed or not-printed paper check already exists, DualEntry skips paper-check creation.\n- If you clear `payment_method_id`, or set it to a payment method that does not print checks, DualEntry sets the associated unprinted paper check to `archived`.\n\n**Additional validations**\n- Fails with `422` if the request changes `check_number` while a paper check is `not_printed`.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Customer Refunds"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerRefundSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing CustomerRefund record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- If the record has a bank account and a payment method that prints checks, DualEntry creates a `not_printed` paper check, even if the record is `draft`.\n- If a printed or not-printed paper check already exists, DualEntry skips paper-check creation.\n- If you clear `payment_method_id`, or set it to a payment method that does not print checks, DualEntry sets the associated unprinted paper check to `archived`.\n\n**Additional validations**\n- Fails with `422` if the request changes `check_number` while a paper check is `not_printed`.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/customer-refunds/{record_number}/attachments/": {
      "post": {
        "operationId": "create_CustomerRefund_record_attachments",
        "summary": "Create CustomerRefund record attachments",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerRefundSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Upload attachments to a CustomerRefund record.",
        "tags": [
          "Customer Refunds"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "files": {
                    "items": {
                      "format": "binary",
                      "type": "string"
                    },
                    "title": "Files",
                    "type": "array"
                  }
                },
                "required": [
                  "files"
                ],
                "title": "FileParams",
                "type": "object"
              }
            }
          },
          "required": true
        }
      }
    },
    "/public/v2/customer-refunds/{record_number}/lines/": {
      "get": {
        "operationId": "list_CustomerRefund_record_lines",
        "summary": "List CustomerRefund record lines",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicCustomerRefundItemOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of lines for a specific CustomerRefund record, ordered by position.",
        "tags": [
          "Customer Refunds"
        ]
      }
    },
    "/public/v2/customer-credits/": {
      "get": {
        "operationId": "list_CustomerCredit_records",
        "summary": "List CustomerCredit records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "title": "Transaction Currency",
              "items": {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "e_invoice_status",
            "schema": {
              "description": "Keep the customer credits whose credit note filing has one of these statuses. `needs_attention` and `none` add to the statuses.",
              "title": "E Invoice Status",
              "items": {
                "$ref": "#/components/schemas/EInvoiceStatusFilter"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Keep the customer credits whose credit note filing has one of these statuses. `needs_attention` and `none` add to the statuses."
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicCustomerCreditSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of CustomerCredit records with filtering and ordering options.",
        "tags": [
          "Customer Credits"
        ]
      },
      "post": {
        "operationId": "create_CustomerCredit_record",
        "summary": "Create CustomerCredit record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerCreditSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new CustomerCredit record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this request posts a credit for an invoice that DualEntry filed, DualEntry checks the credit note with the authority and queues the filing.\n\n**Additional validations**\n- Fails with `422` if the credit names an invoice whose e-invoice the authority has not cleared. The `e_invoicing` key holds the reason. Post the credit after the authority clears the invoice.\n- Fails with `422` if the e-invoice of the posted record has data that the authority refuses. The `e_invoicing` key lists the reasons.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Customer Credits"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerCreditSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new CustomerCredit record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this request posts a credit for an invoice that DualEntry filed, DualEntry checks the credit note with the authority and queues the filing.\n\n**Additional validations**\n- Fails with `422` if the credit names an invoice whose e-invoice the authority has not cleared. The `e_invoicing` key holds the reason. Post the credit after the authority clears the invoice.\n- Fails with `422` if the e-invoice of the posted record has data that the authority refuses. The `e_invoicing` key lists the reasons.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/customer-credits/{record_number}/": {
      "get": {
        "operationId": "get_CustomerCredit_record",
        "summary": "Get CustomerCredit record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "title": "Transaction Currency",
              "items": {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "e_invoice_status",
            "schema": {
              "description": "Keep the customer credits whose credit note filing has one of these statuses. `needs_attention` and `none` add to the statuses.",
              "title": "E Invoice Status",
              "items": {
                "$ref": "#/components/schemas/EInvoiceStatusFilter"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Keep the customer credits whose credit note filing has one of these statuses. `needs_attention` and `none` add to the statuses."
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerCreditSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific CustomerCredit record by its record number with all related data.",
        "tags": [
          "Customer Credits"
        ]
      },
      "put": {
        "operationId": "update_CustomerCredit_record",
        "summary": "Update CustomerCredit record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerCreditSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing CustomerCredit record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this request posts a credit for an invoice that DualEntry filed, DualEntry checks the credit note with the authority and queues the filing.\n\n**Additional validations**\n- Fails with `422` if the credit note filing of the credit runs or the authority cleared it, or if the request changes `invoice_number` of a filed credit note. An archive gets the same answer. The `e_invoicing` key holds the reason.\n- Fails with `422` if the credit names an invoice whose e-invoice the authority has not cleared. The `e_invoicing` key holds the reason. Post the credit after the authority clears the invoice.\n- Fails with `422` if the e-invoice of the posted record has data that the authority refuses. The `e_invoicing` key lists the reasons.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Customer Credits"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerCreditSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing CustomerCredit record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this request posts a credit for an invoice that DualEntry filed, DualEntry checks the credit note with the authority and queues the filing.\n\n**Additional validations**\n- Fails with `422` if the credit note filing of the credit runs or the authority cleared it, or if the request changes `invoice_number` of a filed credit note. An archive gets the same answer. The `e_invoicing` key holds the reason.\n- Fails with `422` if the credit names an invoice whose e-invoice the authority has not cleared. The `e_invoicing` key holds the reason. Post the credit after the authority clears the invoice.\n- Fails with `422` if the e-invoice of the posted record has data that the authority refuses. The `e_invoicing` key lists the reasons.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      },
      "patch": {
        "operationId": "patch_CustomerCredit_record",
        "summary": "Update CustomerCredit record (partial)",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerCreditSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Partially update an existing CustomerCredit record. Send only the fields you want to change. Anything you don't send stays as it is. Updates are subject to the same constraints as the full update endpoint: period locks, payment-applied restrictions, and approval-workflow rules apply.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this request posts a credit for an invoice that DualEntry filed, DualEntry checks the credit note with the authority and queues the filing.\n\n**Additional validations**\n- Fails with `422` if the credit note filing of the credit runs or the authority cleared it, or if the request changes `invoice_number` of a filed credit note. An archive gets the same answer. The `e_invoicing` key holds the reason.\n- Fails with `422` if the credit names an invoice whose e-invoice the authority has not cleared. The `e_invoicing` key holds the reason. Post the credit after the authority clears the invoice.\n- Fails with `422` if the e-invoice of the posted record has data that the authority refuses. The `e_invoicing` key lists the reasons.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Customer Credits"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerCreditSchemaPatchIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Partially update an existing CustomerCredit record."
          },
          "content": "Send only the fields you want to change. Anything you don't send stays as it is. Updates are subject to the same constraints as the full update endpoint: period locks, payment-applied restrictions, and approval-workflow rules apply.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this request posts a credit for an invoice that DualEntry filed, DualEntry checks the credit note with the authority and queues the filing.\n\n**Additional validations**\n- Fails with `422` if the credit note filing of the credit runs or the authority cleared it, or if the request changes `invoice_number` of a filed credit note. An archive gets the same answer. The `e_invoicing` key holds the reason.\n- Fails with `422` if the credit names an invoice whose e-invoice the authority has not cleared. The `e_invoicing` key holds the reason. Post the credit after the authority clears the invoice.\n- Fails with `422` if the e-invoice of the posted record has data that the authority refuses. The `e_invoicing` key lists the reasons.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/customer-credits/{record_number}/lines/": {
      "get": {
        "operationId": "list_CustomerCredit_record_lines",
        "summary": "List CustomerCredit record lines",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "title": "Transaction Currency",
              "items": {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "e_invoice_status",
            "schema": {
              "description": "Keep the customer credits whose credit note filing has one of these statuses. `needs_attention` and `none` add to the statuses.",
              "title": "E Invoice Status",
              "items": {
                "$ref": "#/components/schemas/EInvoiceStatusFilter"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Keep the customer credits whose credit note filing has one of these statuses. `needs_attention` and `none` add to the statuses."
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicCustomerCreditItemOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of lines for a specific CustomerCredit record, ordered by position.",
        "tags": [
          "Customer Credits"
        ]
      }
    },
    "/public/v2/cash-sales/": {
      "get": {
        "operationId": "list_CashSale_records",
        "summary": "List CashSale records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "recurring_record_id",
            "schema": {
              "title": "Recurring Record Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_depositable",
            "schema": {
              "description": "Cash sales in undeposited funds with no posted customer deposit.",
              "title": "Is Depositable",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false,
            "description": "Cash sales in undeposited funds with no posted customer deposit."
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicCashSaleSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of CashSale records with filtering and ordering options.",
        "tags": [
          "Cash Sales"
        ]
      },
      "post": {
        "operationId": "create_CashSale_record",
        "summary": "Create CashSale record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCashSaleSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new CashSale record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Cash Sales"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCashSaleSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new CashSale record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/cash-sales/{record_number}/": {
      "get": {
        "operationId": "get_CashSale_record",
        "summary": "Get CashSale record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "recurring_record_id",
            "schema": {
              "title": "Recurring Record Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_depositable",
            "schema": {
              "description": "Cash sales in undeposited funds with no posted customer deposit.",
              "title": "Is Depositable",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false,
            "description": "Cash sales in undeposited funds with no posted customer deposit."
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCashSaleSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific CashSale record by its record number with all related data.",
        "tags": [
          "Cash Sales"
        ]
      },
      "put": {
        "operationId": "update_CashSale_record",
        "summary": "Update CashSale record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCashSaleSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing CashSale record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Cash Sales"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCashSaleSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing CashSale record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/cash-sales/{record_number}/attachments/": {
      "post": {
        "operationId": "create_CashSale_record_attachments",
        "summary": "Create CashSale record attachments",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCashSaleSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Upload attachments to a CashSale record.",
        "tags": [
          "Cash Sales"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "files": {
                    "items": {
                      "format": "binary",
                      "type": "string"
                    },
                    "title": "Files",
                    "type": "array"
                  }
                },
                "required": [
                  "files"
                ],
                "title": "FileParams",
                "type": "object"
              }
            }
          },
          "required": true
        }
      }
    },
    "/public/v2/cash-sales/{record_number}/lines/": {
      "get": {
        "operationId": "list_CashSale_record_lines",
        "summary": "List CashSale record lines",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "recurring_record_id",
            "schema": {
              "title": "Recurring Record Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_depositable",
            "schema": {
              "description": "Cash sales in undeposited funds with no posted customer deposit.",
              "title": "Is Depositable",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false,
            "description": "Cash sales in undeposited funds with no posted customer deposit."
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicCashSaleItemOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of lines for a specific CashSale record, ordered by position.",
        "tags": [
          "Cash Sales"
        ]
      }
    },
    "/public/v2/customer-payments/": {
      "get": {
        "operationId": "list_CustomerPayment_records",
        "summary": "List CustomerPayment records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "invoice_number",
            "schema": {
              "title": "Invoice Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_credit_number",
            "schema": {
              "title": "Customer Credit Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicCustomerPaymentSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of CustomerPayment records with filtering and ordering options.",
        "tags": [
          "Customer Payments"
        ]
      },
      "post": {
        "operationId": "create_CustomerPayment_record",
        "summary": "Create CustomerPayment record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerPaymentSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new CustomerPayment record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if a bank or credit card account line belongs to another company or uses another currency.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Customer Payments"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerPaymentSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new CustomerPayment record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if a bank or credit card account line belongs to another company or uses another currency.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/customer-payments/{record_number}/": {
      "get": {
        "operationId": "get_CustomerPayment_record",
        "summary": "Get CustomerPayment record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "invoice_number",
            "schema": {
              "title": "Invoice Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_credit_number",
            "schema": {
              "title": "Customer Credit Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerPaymentSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific CustomerPayment record by its record number with all related data.",
        "tags": [
          "Customer Payments"
        ]
      },
      "put": {
        "operationId": "update_CustomerPayment_record",
        "summary": "Update CustomerPayment record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerPaymentSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing CustomerPayment record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if a bank or credit card account line belongs to another company or uses another currency.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Customer Payments"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerPaymentSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing CustomerPayment record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if a bank or credit card account line belongs to another company or uses another currency.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      },
      "patch": {
        "operationId": "patch_CustomerPayment_record",
        "summary": "Update CustomerPayment record (partial)",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerPaymentSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Partially update an existing CustomerPayment record. Send only the fields you want to change. Anything you don't send stays as it is. Updates are subject to the same constraints as the full update endpoint: period locks, payment-applied restrictions, and approval-workflow rules apply.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if a bank or credit card account line belongs to another company or uses another currency.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Customer Payments"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerPaymentSchemaPatchIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Partially update an existing CustomerPayment record."
          },
          "content": "Send only the fields you want to change. Anything you don't send stays as it is. Updates are subject to the same constraints as the full update endpoint: period locks, payment-applied restrictions, and approval-workflow rules apply.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if a bank or credit card account line belongs to another company or uses another currency.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/customer-payments/{record_number}/lines/": {
      "get": {
        "operationId": "list_CustomerPayment_record_lines",
        "summary": "List CustomerPayment record lines",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "invoice_number",
            "schema": {
              "title": "Invoice Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_credit_number",
            "schema": {
              "title": "Customer Credit Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicCustomerPaymentItemOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of lines for a specific CustomerPayment record, ordered by position.",
        "tags": [
          "Customer Payments"
        ]
      }
    },
    "/public/v2/vendor-payments/": {
      "get": {
        "operationId": "list_VendorPayment_records",
        "summary": "List VendorPayment records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "integration_sources",
            "schema": {
              "title": "Integration Sources",
              "items": {
                "$ref": "#/components/schemas/IntegrationSourceSlug"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "source",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Source"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter records by creation source (manual or bank_match_ai)"
            },
            "required": false,
            "description": "Filter records by creation source (manual or bank_match_ai)"
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "bill_number",
            "schema": {
              "title": "Bill Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_credit_number",
            "schema": {
              "title": "Vendor Credit Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "journal_entry_number",
            "schema": {
              "description": "Filter by the number of a journal entry this payment applies to.",
              "title": "Journal Entry Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by the number of a journal entry this payment applies to."
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicVendorPaymentSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of VendorPayment records with filtering and ordering options.",
        "tags": [
          "Vendor Payments"
        ]
      },
      "post": {
        "operationId": "create_VendorPayment_record",
        "summary": "Create VendorPayment record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorPaymentSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new VendorPayment record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- If the customer or vendor is intercompany, DualEntry also writes a transaction in the elimination company.\n- If the record has a bank account and a payment method that prints checks, DualEntry creates a `not_printed` paper check, even if the record is `draft`.\n- If a printed or not-printed paper check already exists, DualEntry skips paper-check creation.\n- If you clear `payment_method_id`, or set it to a payment method that does not print checks, DualEntry sets the associated unprinted paper check to `archived`.\n\n**Additional validations**\n- Fails with `422` if the request changes `check_number` while a paper check is `not_printed`.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Vendor Payments"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicVendorPaymentSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new VendorPayment record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- If the customer or vendor is intercompany, DualEntry also writes a transaction in the elimination company.\n- If the record has a bank account and a payment method that prints checks, DualEntry creates a `not_printed` paper check, even if the record is `draft`.\n- If a printed or not-printed paper check already exists, DualEntry skips paper-check creation.\n- If you clear `payment_method_id`, or set it to a payment method that does not print checks, DualEntry sets the associated unprinted paper check to `archived`.\n\n**Additional validations**\n- Fails with `422` if the request changes `check_number` while a paper check is `not_printed`.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/vendor-payments/{record_number}/": {
      "get": {
        "operationId": "get_VendorPayment_record",
        "summary": "Get VendorPayment record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "integration_sources",
            "schema": {
              "title": "Integration Sources",
              "items": {
                "$ref": "#/components/schemas/IntegrationSourceSlug"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "source",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Source"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter records by creation source (manual or bank_match_ai)"
            },
            "required": false,
            "description": "Filter records by creation source (manual or bank_match_ai)"
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "bill_number",
            "schema": {
              "title": "Bill Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_credit_number",
            "schema": {
              "title": "Vendor Credit Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "journal_entry_number",
            "schema": {
              "description": "Filter by the number of a journal entry this payment applies to.",
              "title": "Journal Entry Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by the number of a journal entry this payment applies to."
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorPaymentSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific VendorPayment record by its record number with all related data.",
        "tags": [
          "Vendor Payments"
        ]
      },
      "put": {
        "operationId": "update_VendorPayment_record",
        "summary": "Update VendorPayment record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorPaymentSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing VendorPayment record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- If the customer or vendor is intercompany, DualEntry also writes a transaction in the elimination company.\n- If the record has a bank account and a payment method that prints checks, DualEntry creates a `not_printed` paper check, even if the record is `draft`.\n- If a printed or not-printed paper check already exists, DualEntry skips paper-check creation.\n- If you clear `payment_method_id`, or set it to a payment method that does not print checks, DualEntry sets the associated unprinted paper check to `archived`.\n\n**Additional validations**\n- Fails with `422` if the request changes `check_number` while a paper check is `not_printed`.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Vendor Payments"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicVendorPaymentSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing VendorPayment record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- If the customer or vendor is intercompany, DualEntry also writes a transaction in the elimination company.\n- If the record has a bank account and a payment method that prints checks, DualEntry creates a `not_printed` paper check, even if the record is `draft`.\n- If a printed or not-printed paper check already exists, DualEntry skips paper-check creation.\n- If you clear `payment_method_id`, or set it to a payment method that does not print checks, DualEntry sets the associated unprinted paper check to `archived`.\n\n**Additional validations**\n- Fails with `422` if the request changes `check_number` while a paper check is `not_printed`.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      },
      "patch": {
        "operationId": "patch_VendorPayment_record",
        "summary": "Update VendorPayment record (partial)",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorPaymentSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Partially update an existing VendorPayment record. Send only the fields you want to change. Anything you don't send stays as it is. Updates are subject to the same constraints as the full update endpoint: period locks, payment-applied restrictions, and approval-workflow rules apply.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- If the customer or vendor is intercompany, DualEntry also writes a transaction in the elimination company.\n- If the record has a bank account and a payment method that prints checks, DualEntry creates a `not_printed` paper check, even if the record is `draft`.\n- If a printed or not-printed paper check already exists, DualEntry skips paper-check creation.\n- If you clear `payment_method_id`, or set it to a payment method that does not print checks, DualEntry sets the associated unprinted paper check to `archived`.\n\n**Additional validations**\n- Fails with `422` if the request changes `check_number` while a paper check is `not_printed`.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Vendor Payments"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicVendorPaymentSchemaPatchIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Partially update an existing VendorPayment record."
          },
          "content": "Send only the fields you want to change. Anything you don't send stays as it is. Updates are subject to the same constraints as the full update endpoint: period locks, payment-applied restrictions, and approval-workflow rules apply.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- If the customer or vendor is intercompany, DualEntry also writes a transaction in the elimination company.\n- If the record has a bank account and a payment method that prints checks, DualEntry creates a `not_printed` paper check, even if the record is `draft`.\n- If a printed or not-printed paper check already exists, DualEntry skips paper-check creation.\n- If you clear `payment_method_id`, or set it to a payment method that does not print checks, DualEntry sets the associated unprinted paper check to `archived`.\n\n**Additional validations**\n- Fails with `422` if the request changes `check_number` while a paper check is `not_printed`.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/vendor-payments/{record_number}/attachments/": {
      "post": {
        "operationId": "create_VendorPayment_record_attachments",
        "summary": "Create VendorPayment record attachments",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorPaymentSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Upload attachments to a VendorPayment record.",
        "tags": [
          "Vendor Payments"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "files": {
                    "items": {
                      "format": "binary",
                      "type": "string"
                    },
                    "title": "Files",
                    "type": "array"
                  }
                },
                "required": [
                  "files"
                ],
                "title": "FileParams",
                "type": "object"
              }
            }
          },
          "required": true
        }
      }
    },
    "/public/v2/vendor-payments/{record_number}/lines/": {
      "get": {
        "operationId": "list_VendorPayment_record_lines",
        "summary": "List VendorPayment record lines",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "integration_sources",
            "schema": {
              "title": "Integration Sources",
              "items": {
                "$ref": "#/components/schemas/IntegrationSourceSlug"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "source",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Source"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter records by creation source (manual or bank_match_ai)"
            },
            "required": false,
            "description": "Filter records by creation source (manual or bank_match_ai)"
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "bill_number",
            "schema": {
              "title": "Bill Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_credit_number",
            "schema": {
              "title": "Vendor Credit Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "journal_entry_number",
            "schema": {
              "description": "Filter by the number of a journal entry this payment applies to.",
              "title": "Journal Entry Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by the number of a journal entry this payment applies to."
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicVendorPaymentItemOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of lines for a specific VendorPayment record, ordered by position.",
        "tags": [
          "Vendor Payments"
        ]
      }
    },
    "/public/v2/vendor-prepayments/": {
      "get": {
        "operationId": "list_VendorPrepayment_records",
        "summary": "List VendorPrepayment records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "recurring_record_id",
            "schema": {
              "title": "Recurring Record Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicVendorPrepaymentSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of VendorPrepayment records with filtering and ordering options.",
        "tags": [
          "Vendor Prepayments"
        ]
      },
      "post": {
        "operationId": "create_VendorPrepayment_record",
        "summary": "Create VendorPrepayment record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorPrepaymentSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new VendorPrepayment record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- If you send `financial_transaction_to_validate_match`, DualEntry matches this vendor prepayment to that bank transaction.\n- If the record has a bank account and a payment method that prints checks, DualEntry creates a `not_printed` paper check, even if the record is `draft`.\n- If a printed or not-printed paper check already exists, DualEntry skips paper-check creation.\n- If you clear `payment_method_id`, or set it to a payment method that does not print checks, DualEntry sets the associated unprinted paper check to `archived`.\n\n**Additional validations**\n- Fails with `422` if the request changes `check_number` while a paper check is `not_printed`.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Vendor Prepayments"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicVendorPrepaymentSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new VendorPrepayment record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- If you send `financial_transaction_to_validate_match`, DualEntry matches this vendor prepayment to that bank transaction.\n- If the record has a bank account and a payment method that prints checks, DualEntry creates a `not_printed` paper check, even if the record is `draft`.\n- If a printed or not-printed paper check already exists, DualEntry skips paper-check creation.\n- If you clear `payment_method_id`, or set it to a payment method that does not print checks, DualEntry sets the associated unprinted paper check to `archived`.\n\n**Additional validations**\n- Fails with `422` if the request changes `check_number` while a paper check is `not_printed`.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/vendor-prepayments/{record_number}/": {
      "get": {
        "operationId": "get_VendorPrepayment_record",
        "summary": "Get VendorPrepayment record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "recurring_record_id",
            "schema": {
              "title": "Recurring Record Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorPrepaymentSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific VendorPrepayment record by its record number with all related data.",
        "tags": [
          "Vendor Prepayments"
        ]
      },
      "put": {
        "operationId": "update_VendorPrepayment_record",
        "summary": "Update VendorPrepayment record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorPrepaymentSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing VendorPrepayment record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- If you send `financial_transaction_to_validate_match`, DualEntry matches this vendor prepayment to that bank transaction.\n- If the record has a bank account and a payment method that prints checks, DualEntry creates a `not_printed` paper check, even if the record is `draft`.\n- If a printed or not-printed paper check already exists, DualEntry skips paper-check creation.\n- If you clear `payment_method_id`, or set it to a payment method that does not print checks, DualEntry sets the associated unprinted paper check to `archived`.\n\n**Additional validations**\n- Fails with `422` if the request changes `check_number` while a paper check is `not_printed`.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Vendor Prepayments"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicVendorPrepaymentSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing VendorPrepayment record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- If you send `financial_transaction_to_validate_match`, DualEntry matches this vendor prepayment to that bank transaction.\n- If the record has a bank account and a payment method that prints checks, DualEntry creates a `not_printed` paper check, even if the record is `draft`.\n- If a printed or not-printed paper check already exists, DualEntry skips paper-check creation.\n- If you clear `payment_method_id`, or set it to a payment method that does not print checks, DualEntry sets the associated unprinted paper check to `archived`.\n\n**Additional validations**\n- Fails with `422` if the request changes `check_number` while a paper check is `not_printed`.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/vendor-prepayment-applications/": {
      "get": {
        "operationId": "list_VendorPrepaymentApplication_records",
        "summary": "List VendorPrepaymentApplication records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "bill_id",
            "schema": {
              "title": "Bill Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicVendorPrepaymentApplicationSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of VendorPrepaymentApplication records with filtering and ordering options.",
        "tags": [
          "Vendor Prepayment Applications"
        ]
      },
      "post": {
        "operationId": "create_VendorPrepaymentApplication_record",
        "summary": "Create VendorPrepaymentApplication record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorPrepaymentApplicationSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new VendorPrepaymentApplication record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If the customer or vendor is intercompany, DualEntry also writes a transaction in the elimination company.\n\n**Additional validations**\n- Fails with `422` when the `items` amounts total more than the remaining balance of the vendor prepayment or vendor credit.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Vendor Prepayment Applications"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicVendorPrepaymentApplicationSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new VendorPrepaymentApplication record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If the customer or vendor is intercompany, DualEntry also writes a transaction in the elimination company.\n\n**Additional validations**\n- Fails with `422` when the `items` amounts total more than the remaining balance of the vendor prepayment or vendor credit.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/vendor-prepayment-applications/{record_number}/": {
      "get": {
        "operationId": "get_VendorPrepaymentApplication_record",
        "summary": "Get VendorPrepaymentApplication record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "bill_id",
            "schema": {
              "title": "Bill Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorPrepaymentApplicationSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific VendorPrepaymentApplication record by its record number with all related data.",
        "tags": [
          "Vendor Prepayment Applications"
        ]
      },
      "put": {
        "operationId": "update_VendorPrepaymentApplication_record",
        "summary": "Update VendorPrepaymentApplication record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorPrepaymentApplicationSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing VendorPrepaymentApplication record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If the customer or vendor is intercompany, DualEntry also writes a transaction in the elimination company.\n\n**Additional validations**\n- Fails with `422` when the `items` amounts total more than the remaining balance of the vendor prepayment or vendor credit.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Vendor Prepayment Applications"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicVendorPrepaymentApplicationSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing VendorPrepaymentApplication record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If the customer or vendor is intercompany, DualEntry also writes a transaction in the elimination company.\n\n**Additional validations**\n- Fails with `422` when the `items` amounts total more than the remaining balance of the vendor prepayment or vendor credit.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/vendor-prepayment-applications/{record_number}/lines/": {
      "get": {
        "operationId": "list_VendorPrepaymentApplication_record_lines",
        "summary": "List VendorPrepaymentApplication record lines",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "bill_id",
            "schema": {
              "title": "Bill Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicVendorPrepaymentApplicationItemOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of lines for a specific VendorPrepaymentApplication record, ordered by position.",
        "tags": [
          "Vendor Prepayment Applications"
        ]
      }
    },
    "/public/v2/vendor-credits/": {
      "get": {
        "operationId": "list_VendorCredit_records",
        "summary": "List VendorCredit records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ap_account_id",
            "schema": {
              "description": "Return vendor credits posted to any of these AP account IDs.",
              "title": "Ap Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Return vendor credits posted to any of these AP account IDs."
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "bill_number",
            "schema": {
              "title": "Bill Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicVendorCreditSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of VendorCredit records with filtering and ordering options.",
        "tags": [
          "Vendor Credits"
        ]
      },
      "post": {
        "operationId": "create_VendorCredit_record",
        "summary": "Create VendorCredit record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorCreditSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new VendorCredit record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when the AP account is missing, inactive, of a type that is not allowed, in another company, or not the intercompany AP account on an intercompany record.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Vendor Credits"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicVendorCreditSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new VendorCredit record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when the AP account is missing, inactive, of a type that is not allowed, in another company, or not the intercompany AP account on an intercompany record.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/vendor-credits/{record_number}/": {
      "get": {
        "operationId": "get_VendorCredit_record",
        "summary": "Get VendorCredit record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ap_account_id",
            "schema": {
              "description": "Return vendor credits posted to any of these AP account IDs.",
              "title": "Ap Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Return vendor credits posted to any of these AP account IDs."
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "bill_number",
            "schema": {
              "title": "Bill Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorCreditSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific VendorCredit record by its record number with all related data.",
        "tags": [
          "Vendor Credits"
        ]
      },
      "put": {
        "operationId": "update_VendorCredit_record",
        "summary": "Update VendorCredit record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorCreditSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing VendorCredit record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when the AP account is missing, inactive, of a type that is not allowed, in another company, or not the intercompany AP account on an intercompany record.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Vendor Credits"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicVendorCreditSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing VendorCredit record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when the AP account is missing, inactive, of a type that is not allowed, in another company, or not the intercompany AP account on an intercompany record.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/vendor-credits/{record_number}/lines/": {
      "get": {
        "operationId": "list_VendorCredit_record_lines",
        "summary": "List VendorCredit record lines",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ap_account_id",
            "schema": {
              "description": "Return vendor credits posted to any of these AP account IDs.",
              "title": "Ap Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Return vendor credits posted to any of these AP account IDs."
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "bill_number",
            "schema": {
              "title": "Bill Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicVendorCreditLineOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of lines for a specific VendorCredit record, ordered by position.",
        "tags": [
          "Vendor Credits"
        ]
      }
    },
    "/public/v2/vendor-refunds/": {
      "get": {
        "operationId": "list_VendorRefund_records",
        "summary": "List VendorRefund records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_credit_id",
            "schema": {
              "title": "Vendor Credit Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicVendorRefundSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of VendorRefund records with filtering and ordering options.",
        "tags": [
          "Vendor Refunds"
        ]
      },
      "post": {
        "operationId": "create_VendorRefund_record",
        "summary": "Create VendorRefund record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorRefundSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new VendorRefund record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Vendor Refunds"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicVendorRefundSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new VendorRefund record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/vendor-refunds/{record_number}/": {
      "get": {
        "operationId": "get_VendorRefund_record",
        "summary": "Get VendorRefund record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_credit_id",
            "schema": {
              "title": "Vendor Credit Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorRefundSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific VendorRefund record by its record number with all related data.",
        "tags": [
          "Vendor Refunds"
        ]
      },
      "put": {
        "operationId": "update_VendorRefund_record",
        "summary": "Update VendorRefund record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorRefundSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing VendorRefund record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Vendor Refunds"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicVendorRefundSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing VendorRefund record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/vendor-refunds/{record_number}/attachments/": {
      "post": {
        "operationId": "create_VendorRefund_record_attachments",
        "summary": "Create VendorRefund record attachments",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorRefundSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Upload attachments to a VendorRefund record.",
        "tags": [
          "Vendor Refunds"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "files": {
                    "items": {
                      "format": "binary",
                      "type": "string"
                    },
                    "title": "Files",
                    "type": "array"
                  }
                },
                "required": [
                  "files"
                ],
                "title": "FileParams",
                "type": "object"
              }
            }
          },
          "required": true
        }
      }
    },
    "/public/v2/vendor-refunds/{record_number}/lines/": {
      "get": {
        "operationId": "list_VendorRefund_record_lines",
        "summary": "List VendorRefund record lines",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_credit_id",
            "schema": {
              "title": "Vendor Credit Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicVendorRefundItemOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of lines for a specific VendorRefund record, ordered by position.",
        "tags": [
          "Vendor Refunds"
        ]
      }
    },
    "/public/v2/direct-expenses/": {
      "get": {
        "operationId": "list_DirectExpense_records",
        "summary": "List DirectExpense records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "integration_sources",
            "schema": {
              "title": "Integration Sources",
              "items": {
                "$ref": "#/components/schemas/IntegrationSourceSlug"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "account_number",
            "schema": {
              "description": "Filter by the number of the bank or credit card account.",
              "title": "Account Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by the number of the bank or credit card account."
          },
          {
            "in": "query",
            "name": "recurring_record_id",
            "schema": {
              "description": "Filter by the recurring template id.",
              "title": "Recurring Record Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by the recurring template id."
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicDirectExpenseSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of DirectExpense records with filtering and ordering options.",
        "tags": [
          "Direct Expenses"
        ]
      },
      "post": {
        "operationId": "create_DirectExpense_record",
        "summary": "Create DirectExpense record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicDirectExpenseSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new DirectExpense record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- If the record has a bank account and a payment method that prints checks, DualEntry creates a `not_printed` paper check, even if the record is `draft`.\n- If a printed or not-printed paper check already exists, DualEntry skips paper-check creation.\n- If you clear `payment_method_id`, or set it to a payment method that does not print checks, DualEntry sets the associated unprinted paper check to `archived`.\n\n**Additional validations**\n- Fails with `422` if the request changes `check_number` while a paper check is `not_printed`.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Direct Expenses"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicDirectExpenseSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new DirectExpense record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- If the record has a bank account and a payment method that prints checks, DualEntry creates a `not_printed` paper check, even if the record is `draft`.\n- If a printed or not-printed paper check already exists, DualEntry skips paper-check creation.\n- If you clear `payment_method_id`, or set it to a payment method that does not print checks, DualEntry sets the associated unprinted paper check to `archived`.\n\n**Additional validations**\n- Fails with `422` if the request changes `check_number` while a paper check is `not_printed`.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/direct-expenses/{record_number}/": {
      "get": {
        "operationId": "get_DirectExpense_record",
        "summary": "Get DirectExpense record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "integration_sources",
            "schema": {
              "title": "Integration Sources",
              "items": {
                "$ref": "#/components/schemas/IntegrationSourceSlug"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "account_number",
            "schema": {
              "description": "Filter by the number of the bank or credit card account.",
              "title": "Account Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by the number of the bank or credit card account."
          },
          {
            "in": "query",
            "name": "recurring_record_id",
            "schema": {
              "description": "Filter by the recurring template id.",
              "title": "Recurring Record Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by the recurring template id."
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicDirectExpenseSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific DirectExpense record by its record number with all related data.",
        "tags": [
          "Direct Expenses"
        ]
      },
      "put": {
        "operationId": "update_DirectExpense_record",
        "summary": "Update DirectExpense record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicDirectExpenseSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing DirectExpense record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- If the record has a bank account and a payment method that prints checks, DualEntry creates a `not_printed` paper check, even if the record is `draft`.\n- If a printed or not-printed paper check already exists, DualEntry skips paper-check creation.\n- If you clear `payment_method_id`, or set it to a payment method that does not print checks, DualEntry sets the associated unprinted paper check to `archived`.\n\n**Additional validations**\n- Fails with `422` if the request changes `check_number` while a paper check is `not_printed`.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Direct Expenses"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicDirectExpenseSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing DirectExpense record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- If the record has a bank account and a payment method that prints checks, DualEntry creates a `not_printed` paper check, even if the record is `draft`.\n- If a printed or not-printed paper check already exists, DualEntry skips paper-check creation.\n- If you clear `payment_method_id`, or set it to a payment method that does not print checks, DualEntry sets the associated unprinted paper check to `archived`.\n\n**Additional validations**\n- Fails with `422` if the request changes `check_number` while a paper check is `not_printed`.\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the record's company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/direct-expenses/{record_number}/attachments/": {
      "post": {
        "operationId": "create_DirectExpense_record_attachments",
        "summary": "Create DirectExpense record attachments",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicDirectExpenseSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Upload attachments to a DirectExpense record.",
        "tags": [
          "Direct Expenses"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "files": {
                    "items": {
                      "format": "binary",
                      "type": "string"
                    },
                    "title": "Files",
                    "type": "array"
                  }
                },
                "required": [
                  "files"
                ],
                "title": "FileParams",
                "type": "object"
              }
            }
          },
          "required": true
        }
      }
    },
    "/public/v2/direct-expenses/{record_number}/lines/": {
      "get": {
        "operationId": "list_DirectExpense_record_lines",
        "summary": "List DirectExpense record lines",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "integration_sources",
            "schema": {
              "title": "Integration Sources",
              "items": {
                "$ref": "#/components/schemas/IntegrationSourceSlug"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "account_number",
            "schema": {
              "description": "Filter by the number of the bank or credit card account.",
              "title": "Account Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by the number of the bank or credit card account."
          },
          {
            "in": "query",
            "name": "recurring_record_id",
            "schema": {
              "description": "Filter by the recurring template id.",
              "title": "Recurring Record Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by the recurring template id."
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicExpenseItemOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of lines for a specific DirectExpense record, ordered by position.",
        "tags": [
          "Direct Expenses"
        ]
      }
    },
    "/public/v2/bank-transfers/": {
      "get": {
        "operationId": "list_BankTransfer_records",
        "summary": "List BankTransfer records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "debit_bank_account_number",
            "schema": {
              "title": "Debit Bank Account Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "credit_bank_account_number",
            "schema": {
              "title": "Credit Bank Account Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicBankTransferSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of BankTransfer records with filtering and ordering options.",
        "tags": [
          "Bank Transfers"
        ]
      },
      "post": {
        "operationId": "create_BankTransfer_record",
        "summary": "Create BankTransfer record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBankTransferSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new BankTransfer record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Bank Transfers"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicBankTransferSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new BankTransfer record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/bank-transfers/{record_number}/": {
      "get": {
        "operationId": "get_BankTransfer_record",
        "summary": "Get BankTransfer record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "debit_bank_account_number",
            "schema": {
              "title": "Debit Bank Account Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "credit_bank_account_number",
            "schema": {
              "title": "Credit Bank Account Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBankTransferSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific BankTransfer record by its record number with all related data.",
        "tags": [
          "Bank Transfers"
        ]
      },
      "put": {
        "operationId": "update_BankTransfer_record",
        "summary": "Update BankTransfer record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBankTransferSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing BankTransfer record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Bank Transfers"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicBankTransferSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing BankTransfer record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/statistical-journals/": {
      "get": {
        "operationId": "list_StatisticalJournal_records",
        "summary": "List StatisticalJournal records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "account_id",
            "schema": {
              "title": "Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "account_number",
            "schema": {
              "title": "Account Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "line_account_id",
            "schema": {
              "title": "Line Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "line_account_number",
            "schema": {
              "title": "Line Account Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "period_start",
            "schema": {
              "title": "Period Start",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "period_end",
            "schema": {
              "title": "Period End",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "date_start",
            "schema": {
              "title": "Date Start",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "date_end",
            "schema": {
              "title": "Date End",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicStatisticalJournalListSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of StatisticalJournal records with filtering and ordering options.",
        "tags": [
          "Statistical Journals"
        ]
      },
      "post": {
        "operationId": "create_StatisticalJournal_record",
        "summary": "Create StatisticalJournal record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicStatisticalJournalSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new StatisticalJournal record with the provided data. Validates all required fields and business rules.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the line's company, or to the record's company when the line sets none.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Statistical Journals"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicStatisticalJournalSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new StatisticalJournal record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the line's company, or to the record's company when the line sets none.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/statistical-journals/{record_number}/": {
      "get": {
        "operationId": "get_StatisticalJournal_record",
        "summary": "Get StatisticalJournal record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "account_id",
            "schema": {
              "title": "Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "account_number",
            "schema": {
              "title": "Account Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "line_account_id",
            "schema": {
              "title": "Line Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "line_account_number",
            "schema": {
              "title": "Line Account Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "period_start",
            "schema": {
              "title": "Period Start",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "period_end",
            "schema": {
              "title": "Period End",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "date_start",
            "schema": {
              "title": "Date Start",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "date_end",
            "schema": {
              "title": "Date End",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicStatisticalJournalSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific StatisticalJournal record by its record number with all related data.",
        "tags": [
          "Statistical Journals"
        ]
      },
      "put": {
        "operationId": "update_StatisticalJournal_record",
        "summary": "Update StatisticalJournal record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicStatisticalJournalSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing StatisticalJournal record with the provided data. Validates all required fields and business rules.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the line's company, or to the record's company when the line sets none.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Statistical Journals"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicStatisticalJournalSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing StatisticalJournal record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if a line account is not available to the line's company, or to the record's company when the line sets none.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/statistical-journals/{record_number}/attachments/": {
      "post": {
        "operationId": "create_StatisticalJournal_record_attachments",
        "summary": "Create StatisticalJournal record attachments",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicStatisticalJournalSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Upload attachments to a StatisticalJournal record.",
        "tags": [
          "Statistical Journals"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "files": {
                    "items": {
                      "format": "binary",
                      "type": "string"
                    },
                    "title": "Files",
                    "type": "array"
                  }
                },
                "required": [
                  "files"
                ],
                "title": "FileParams",
                "type": "object"
              }
            }
          },
          "required": true
        }
      }
    },
    "/public/v2/statistical-journals/{record_number}/lines/": {
      "get": {
        "operationId": "list_StatisticalJournal_record_lines",
        "summary": "List StatisticalJournal record lines",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "account_id",
            "schema": {
              "title": "Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "account_number",
            "schema": {
              "title": "Account Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "line_account_id",
            "schema": {
              "title": "Line Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "line_account_number",
            "schema": {
              "title": "Line Account Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "period_start",
            "schema": {
              "title": "Period Start",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "period_end",
            "schema": {
              "title": "Period End",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "date_start",
            "schema": {
              "title": "Date Start",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "date_end",
            "schema": {
              "title": "Date End",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicStatisticalJournalLineSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of lines for a specific StatisticalJournal record, ordered by position.",
        "tags": [
          "Statistical Journals"
        ]
      }
    },
    "/public/v2/recurring/invoices/": {
      "get": {
        "operationId": "list_RecurringInvoice_records",
        "summary": "List RecurringInvoice records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "recurring_type",
            "schema": {
              "title": "Recurring Type",
              "items": {
                "$ref": "#/components/schemas/RecurringType"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicRecurringInvoiceSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of RecurringInvoice records with filtering and ordering options.",
        "tags": [
          "Recurring Invoices"
        ]
      },
      "post": {
        "operationId": "create_RecurringInvoice_record",
        "summary": "Create RecurringInvoice record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicRecurringInvoiceSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new RecurringInvoice record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If a schedule date is already due, DualEntry can create records from this template in the same request.\n\n**Additional validations**\n- Your API key needs the create permission of the template's record type, such as `invoice:create` for a recurring invoice, as well as `recurring:create`. Without both permissions, the request returns `403`.\n- Fails with `422` and error code `recurring_template_archived_party` when the template uses an archived customer or vendor.",
        "tags": [
          "Recurring Invoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicRecurringInvoiceSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new RecurringInvoice record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If a schedule date is already due, DualEntry can create records from this template in the same request.\n\n**Additional validations**\n- Your API key needs the create permission of the template's record type, such as `invoice:create` for a recurring invoice, as well as `recurring:create`. Without both permissions, the request returns `403`.\n- Fails with `422` and error code `recurring_template_archived_party` when the template uses an archived customer or vendor."
        }
      }
    },
    "/public/v2/recurring/invoices/{record_number}/": {
      "get": {
        "operationId": "get_RecurringInvoice_record",
        "summary": "Get RecurringInvoice record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "recurring_type",
            "schema": {
              "title": "Recurring Type",
              "items": {
                "$ref": "#/components/schemas/RecurringType"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicRecurringInvoiceSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific RecurringInvoice record by its record number with all related data.",
        "tags": [
          "Recurring Invoices"
        ]
      },
      "put": {
        "operationId": "update_RecurringInvoice_record",
        "summary": "Update RecurringInvoice record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicRecurringInvoiceSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing RecurringInvoice record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If a schedule date is already due, DualEntry can create records from this template in the same request.\n\n**Additional validations**\n- Your API key needs the edit permission of the template's record type, such as `invoice:edit` for a recurring invoice, as well as `recurring:edit`. Without both permissions, the request returns `403`.\n- Fails with `422` and error code `recurring_template_archived_party` when the template uses an archived customer or vendor.",
        "tags": [
          "Recurring Invoices"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicRecurringInvoiceSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing RecurringInvoice record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If a schedule date is already due, DualEntry can create records from this template in the same request.\n\n**Additional validations**\n- Your API key needs the edit permission of the template's record type, such as `invoice:edit` for a recurring invoice, as well as `recurring:edit`. Without both permissions, the request returns `403`.\n- Fails with `422` and error code `recurring_template_archived_party` when the template uses an archived customer or vendor."
        }
      },
      "delete": {
        "operationId": "delete_RecurringInvoice_record",
        "summary": "Delete RecurringInvoice record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Delete a RecurringInvoice record.\n\n**Side effects**\n- DualEntry unlinks the template from records already created. Those records remain.",
        "tags": [
          "Recurring Invoices"
        ]
      }
    },
    "/public/v2/recurring/bills/": {
      "get": {
        "operationId": "list_RecurringBill_records",
        "summary": "List RecurringBill records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "recurring_type",
            "schema": {
              "title": "Recurring Type",
              "items": {
                "$ref": "#/components/schemas/RecurringType"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicRecurringBillSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of RecurringBill records with filtering and ordering options.",
        "tags": [
          "Recurring Bills"
        ]
      },
      "post": {
        "operationId": "create_RecurringBill_record",
        "summary": "Create RecurringBill record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicRecurringBillSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new RecurringBill record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If a schedule date is already due, DualEntry can create records from this template in the same request.\n\n**Additional validations**\n- Your API key needs the create permission of the template's record type, such as `invoice:create` for a recurring invoice, as well as `recurring:create`. Without both permissions, the request returns `403`.\n- Fails with `422` and error code `recurring_template_archived_party` when the template uses an archived customer or vendor.",
        "tags": [
          "Recurring Bills"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicRecurringBillSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new RecurringBill record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If a schedule date is already due, DualEntry can create records from this template in the same request.\n\n**Additional validations**\n- Your API key needs the create permission of the template's record type, such as `invoice:create` for a recurring invoice, as well as `recurring:create`. Without both permissions, the request returns `403`.\n- Fails with `422` and error code `recurring_template_archived_party` when the template uses an archived customer or vendor."
        }
      }
    },
    "/public/v2/recurring/bills/{record_number}/": {
      "get": {
        "operationId": "get_RecurringBill_record",
        "summary": "Get RecurringBill record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "recurring_type",
            "schema": {
              "title": "Recurring Type",
              "items": {
                "$ref": "#/components/schemas/RecurringType"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicRecurringBillSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific RecurringBill record by its record number with all related data.",
        "tags": [
          "Recurring Bills"
        ]
      },
      "put": {
        "operationId": "update_RecurringBill_record",
        "summary": "Update RecurringBill record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicRecurringBillSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing RecurringBill record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If a schedule date is already due, DualEntry can create records from this template in the same request.\n\n**Additional validations**\n- Your API key needs the edit permission of the template's record type, such as `invoice:edit` for a recurring invoice, as well as `recurring:edit`. Without both permissions, the request returns `403`.\n- Fails with `422` and error code `recurring_template_archived_party` when the template uses an archived customer or vendor.",
        "tags": [
          "Recurring Bills"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicRecurringBillSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing RecurringBill record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If a schedule date is already due, DualEntry can create records from this template in the same request.\n\n**Additional validations**\n- Your API key needs the edit permission of the template's record type, such as `invoice:edit` for a recurring invoice, as well as `recurring:edit`. Without both permissions, the request returns `403`.\n- Fails with `422` and error code `recurring_template_archived_party` when the template uses an archived customer or vendor."
        }
      },
      "delete": {
        "operationId": "delete_RecurringBill_record",
        "summary": "Delete RecurringBill record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Delete a RecurringBill record.\n\n**Side effects**\n- DualEntry unlinks the template from records already created. Those records remain.",
        "tags": [
          "Recurring Bills"
        ]
      }
    },
    "/public/v2/recurring/journal-entries/": {
      "get": {
        "operationId": "list_RecurringJournalEntry_records",
        "summary": "List RecurringJournalEntry records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "recurring_type",
            "schema": {
              "title": "Recurring Type",
              "items": {
                "$ref": "#/components/schemas/RecurringType"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicRecurringJournalEntrySchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of RecurringJournalEntry records with filtering and ordering options.",
        "tags": [
          "Recurring Journal Entries"
        ]
      },
      "post": {
        "operationId": "create_RecurringJournalEntry_record",
        "summary": "Create RecurringJournalEntry record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicRecurringJournalEntrySchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new RecurringJournalEntry record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If a schedule date is already due, DualEntry can create records from this template in the same request.\n\n**Additional validations**\n- Your API key needs the create permission of the template's record type, such as `invoice:create` for a recurring invoice, as well as `recurring:create`. Without both permissions, the request returns `403`.\n- Fails with `422` and error code `recurring_template_archived_party` when the template uses an archived customer or vendor.",
        "tags": [
          "Recurring Journal Entries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicRecurringJournalEntrySchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new RecurringJournalEntry record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If a schedule date is already due, DualEntry can create records from this template in the same request.\n\n**Additional validations**\n- Your API key needs the create permission of the template's record type, such as `invoice:create` for a recurring invoice, as well as `recurring:create`. Without both permissions, the request returns `403`.\n- Fails with `422` and error code `recurring_template_archived_party` when the template uses an archived customer or vendor."
        }
      }
    },
    "/public/v2/recurring/journal-entries/{record_number}/": {
      "get": {
        "operationId": "get_RecurringJournalEntry_record",
        "summary": "Get RecurringJournalEntry record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "recurring_type",
            "schema": {
              "title": "Recurring Type",
              "items": {
                "$ref": "#/components/schemas/RecurringType"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicRecurringJournalEntrySchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific RecurringJournalEntry record by its record number with all related data.",
        "tags": [
          "Recurring Journal Entries"
        ]
      },
      "put": {
        "operationId": "update_RecurringJournalEntry_record",
        "summary": "Update RecurringJournalEntry record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicRecurringJournalEntrySchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing RecurringJournalEntry record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If a schedule date is already due, DualEntry can create records from this template in the same request.\n\n**Additional validations**\n- Your API key needs the edit permission of the template's record type, such as `invoice:edit` for a recurring invoice, as well as `recurring:edit`. Without both permissions, the request returns `403`.\n- Fails with `422` and error code `recurring_template_archived_party` when the template uses an archived customer or vendor.",
        "tags": [
          "Recurring Journal Entries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicRecurringJournalEntrySchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing RecurringJournalEntry record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If a schedule date is already due, DualEntry can create records from this template in the same request.\n\n**Additional validations**\n- Your API key needs the edit permission of the template's record type, such as `invoice:edit` for a recurring invoice, as well as `recurring:edit`. Without both permissions, the request returns `403`.\n- Fails with `422` and error code `recurring_template_archived_party` when the template uses an archived customer or vendor."
        }
      },
      "delete": {
        "operationId": "delete_RecurringJournalEntry_record",
        "summary": "Delete RecurringJournalEntry record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Delete a RecurringJournalEntry record.\n\n**Side effects**\n- DualEntry unlinks the template from records already created. Those records remain.",
        "tags": [
          "Recurring Journal Entries"
        ]
      }
    },
    "/public/v2/companies/": {
      "get": {
        "operationId": "core_api_public_companies_list_companies",
        "summary": "List companies",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "title": "Name",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "parent_company_id",
            "schema": {
              "title": "Parent Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "currency_iso_4217_code",
            "schema": {
              "title": "Currency Iso 4217 Code",
              "items": {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_active",
            "schema": {
              "title": "Is Active",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_elimination",
            "schema": {
              "title": "Is Elimination",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "-updated_at",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedCompanySchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of companies with filtering, search, and ordering capabilities.",
        "tags": [
          "Companies"
        ]
      }
    },
    "/public/v2/companies/{company_id}/": {
      "get": {
        "operationId": "core_api_public_companies_get_company",
        "summary": "Get company",
        "parameters": [
          {
            "in": "path",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanySchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific company by ID with all related data including company access.",
        "tags": [
          "Companies"
        ]
      }
    },
    "/public/v2/accounts/": {
      "get": {
        "operationId": "core_api_public_accounts_list_accounts",
        "summary": "List accounts",
        "parameters": [
          {
            "in": "query",
            "name": "integration_sources",
            "schema": {
              "title": "Integration Sources",
              "items": {
                "$ref": "#/components/schemas/IntegrationSourceSlug"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "excluded_id",
            "schema": {
              "description": "Account IDs to exclude from the response. Combines with id (include set minus excluded set).",
              "title": "Excluded Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Account IDs to exclude from the response. Combines with id (include set minus excluded set)."
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "title": "Name",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "description",
            "schema": {
              "title": "Description",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "type": [
                "integer",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "account_types",
            "schema": {
              "title": "Account Types",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "excluded_account_types",
            "schema": {
              "description": "Account types to exclude from the response. Combines with `account_types` (include set minus excluded set).",
              "title": "Excluded Account Types",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Account types to exclude from the response. Combines with `account_types` (include set minus excluded set)."
          },
          {
            "in": "query",
            "name": "is_active",
            "schema": {
              "title": "Is Active",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_system",
            "schema": {
              "title": "Is System",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_monetary",
            "schema": {
              "title": "Is Monetary",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "description": "Only filters by `company_id` field used in Bank and Credit Card accounts.",
              "title": "Company Id",
              "items": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "const": "null",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "uniqueItems": true,
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Only filters by `company_id` field used in Bank and Credit Card accounts."
          },
          {
            "in": "query",
            "name": "parent_account_id",
            "schema": {
              "title": "Parent Account Id",
              "type": [
                "integer",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "financial_account_id",
            "schema": {
              "description": "Only filters by `financial_account_id` field used in Bank and Credit Card accounts.",
              "title": "Financial Account Id",
              "items": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "const": "null",
                    "type": "string"
                  }
                ]
              },
              "uniqueItems": true,
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Only filters by `financial_account_id` field used in Bank and Credit Card accounts."
          },
          {
            "in": "query",
            "name": "no_financial_account",
            "schema": {
              "title": "No Financial Account",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "currency_iso_4217_code",
            "schema": {
              "title": "Currency Iso 4217 Code",
              "items": {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "category_1099",
            "schema": {
              "title": "Category 1099",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ebitda_category",
            "schema": {
              "title": "Ebitda Category",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "should_sync_pending",
            "schema": {
              "title": "Should Sync Pending",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id_access",
            "schema": {
              "description": "A combined filter by `company_id_access`, and the `company_id` field used in Bank and Credit Card accounts.",
              "title": "Company Id Access",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "A combined filter by `company_id_access`, and the `company_id` field used in Bank and Credit Card accounts."
          },
          {
            "in": "query",
            "name": "numbers",
            "schema": {
              "title": "Numbers",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "names",
            "schema": {
              "title": "Names",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "system_ref",
            "schema": {
              "title": "System Ref",
              "items": {
                "$ref": "#/components/schemas/SystemAccountNames"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "exclude_mapped_to_other_companies",
            "schema": {
              "description": "When set to a `company_id`, only returns accounts that are completely unmapped (no `company_id` and no AccountCompanyAccess). Used during migration to avoid selecting accounts already mapped to any company.",
              "title": "Exclude Mapped To Other Companies",
              "type": [
                "integer",
                "null"
              ]
            },
            "required": false,
            "description": "When set to a `company_id`, only returns accounts that are completely unmapped (no `company_id` and no AccountCompanyAccess). Used during migration to avoid selecting accounts already mapped to any company."
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "number",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicAccountSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of chart of accounts with filtering, search, and ordering capabilities.",
        "tags": [
          "Accounts"
        ]
      },
      "post": {
        "operationId": "core_api_public_accounts_create_account",
        "summary": "Create account",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicAccountSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new account in the chart of accounts. Supports parent-child relationships and company access restrictions.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `is_active` to `false`.",
        "tags": [
          "Accounts"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicAccountSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new account in the chart of accounts."
          },
          "content": "Supports parent-child relationships and company access restrictions.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `is_active` to `false`."
        }
      }
    },
    "/public/v2/accounts/{account_number}/": {
      "get": {
        "operationId": "core_api_public_accounts_get_account",
        "summary": "Get account",
        "parameters": [
          {
            "in": "path",
            "name": "account_number",
            "schema": {
              "title": "Account Number",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicAccountSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific account by number with all related data including company access.",
        "tags": [
          "Accounts"
        ]
      },
      "put": {
        "operationId": "core_api_public_accounts_update_account",
        "summary": "Update account",
        "parameters": [
          {
            "in": "path",
            "name": "account_number",
            "schema": {
              "title": "Account Number",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicAccountSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an account identified by its number. Send the same fields as create. Omit `monetary_distinction` and `is_monetary` to keep the stored monetary distinction. Send `null` for `allowed_company_ids` to remove company restrictions. A system account accepts only the fields the app update accepts. A change to monetary distinction is refused when the account has posted transactions.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `is_active` to `false`.",
        "tags": [
          "Accounts"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicAccountSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an account identified by its number."
          },
          "content": "Send the same fields as create. Omit `monetary_distinction` and `is_monetary` to keep the stored monetary distinction. Send `null` for `allowed_company_ids` to remove company restrictions. A system account accepts only the fields the app update accepts. A change to monetary distinction is refused when the account has posted transactions.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `is_active` to `false`."
        }
      }
    },
    "/public/v2/account_balances/": {
      "get": {
        "operationId": "core_api_public_account_balances_list_account_balances",
        "summary": "List account balances",
        "parameters": [
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "description": "Company to report on. Balances are in this company's base currency.",
              "title": "Company Id",
              "type": "integer"
            },
            "required": true,
            "description": "Company to report on. Balances are in this company's base currency."
          },
          {
            "in": "query",
            "name": "as_of_date",
            "schema": {
              "description": "Report date. Balance-sheet accounts report through this date; income-statement accounts report from the fiscal year start.",
              "format": "date",
              "title": "As Of Date",
              "type": "string"
            },
            "required": true,
            "description": "Report date. Balance-sheet accounts report through this date; income-statement accounts report from the fiscal year start."
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 200,
              "description": "Number of records to return per page (capped at 200)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 200)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicAccountBalanceSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve account balances for one company as of a date, equivalent to a Trial Balance report. Balance-sheet accounts report the balance through the date. Income-statement accounts report the balance from the start of the fiscal year that contains the date. Retained Earnings carries the closed fiscal years' net income on top of anything posted to it directly. Balances are in the company's base currency. Accounts with no activity are included with a zero balance, and inactive accounts are included.\n\nRows are paged by `limit` and `offset` and ordered by account number. There is no total in the response: `count` is the number of accounts.",
        "tags": [
          "Reporting"
        ],
        "x-mint": {
          "metadata": {
            "description": "Retrieve account balances for one company as of a date, equivalent to a Trial Balance report."
          },
          "content": "Balance-sheet accounts report the balance through the date. Income-statement accounts report the balance from the start of the fiscal year that contains the date. Retained Earnings carries the closed fiscal years' net income on top of anything posted to it directly. Balances are in the company's base currency. Accounts with no activity are included with a zero balance, and inactive accounts are included.\n\nRows are paged by `limit` and `offset` and ordered by account number. There is no total in the response: `count` is the number of accounts."
        }
      }
    },
    "/public/v2/general_ledger/": {
      "get": {
        "operationId": "core_api_public_general_ledger_list_general_ledger",
        "summary": "List general ledger lines",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of rows to return (capped at 100)",
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of rows to return (capped at 100)"
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "description": "Opaque cursor from a previous response's next_cursor. Omit for the first page. Pass the same `company_id`, `account_id`, `start_date`, and `end_date` on every page; changing filters mid-walk is undefined.",
              "title": "Cursor",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Opaque cursor from a previous response's next_cursor. Omit for the first page. Pass the same `company_id`, `account_id`, `start_date`, and `end_date` on every page; changing filters mid-walk is undefined."
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "description": "Filter to these company ids. Intersected with the API key's company access.",
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter to these company ids. Intersected with the API key's company access."
          },
          {
            "in": "query",
            "name": "account_id",
            "schema": {
              "description": "Filter to these account ids.",
              "title": "Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter to these account ids."
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "description": "Inclusive posting-date lower bound.",
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Inclusive posting-date lower bound."
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "description": "Inclusive posting-date upper bound.",
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Inclusive posting-date upper bound."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicGeneralLedgerPageOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Posted general-ledger entry lines for the organization, same columns as the `general_ledger` table in your data export. Ordered by entry id. Page with the opaque `cursor` / `next_cursor` pair; do not use offset. Optional `company_id`, `account_id`, `start_date`, and `end_date` narrow the walk (posting date on the transaction). A walk includes lines already posted when you request the first page. Postings made after that show up when you omit `cursor` and start again.",
        "tags": [
          "Reporting"
        ],
        "x-mint": {
          "metadata": {
            "description": "Posted general-ledger entry lines for the organization, same columns as the `general_ledger` table in your data export."
          },
          "content": "Ordered by entry id. Page with the opaque `cursor` / `next_cursor` pair; do not use offset. Optional `company_id`, `account_id`, `start_date`, and `end_date` narrow the walk (posting date on the transaction). A walk includes lines already posted when you request the first page. Postings made after that show up when you omit `cursor` and start again."
        }
      }
    },
    "/public/v2/trial_balance/": {
      "get": {
        "operationId": "core_api_public_reporting_trial_balance_list_trial_balance_facts",
        "summary": "List trial balance facts",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Max rows per page (capped at 100). May resume mid-account across months.",
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Max rows per page (capped at 100). May resume mid-account across months."
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "description": "Opaque cursor from a previous response's next_cursor. Omit for the first page. Pass the same `company_id`, `account_id`, `start_date`, and `end_date` on every page; changing filters mid-walk is undefined.",
              "title": "Cursor",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Opaque cursor from a previous response's next_cursor. Omit for the first page. Pass the same `company_id`, `account_id`, `start_date`, and `end_date` on every page; changing filters mid-walk is undefined."
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "description": "Filter to these company ids. Intersected with the API key's company access.",
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter to these company ids. Intersected with the API key's company access."
          },
          {
            "in": "query",
            "name": "account_id",
            "schema": {
              "description": "Filter to these account ids.",
              "title": "Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter to these account ids."
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "description": "Inclusive lower bound on month periods (`period_start`). Day is ignored; grain is calendar month. Emit months start no earlier than 15 fiscal years before the company's last posting; an earlier `start_date` advances to that floor.",
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Inclusive lower bound on month periods (`period_start`). Day is ignored; grain is calendar month. Emit months start no earlier than 15 fiscal years before the company's last posting; an earlier `start_date` advances to that floor."
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "description": "Inclusive upper bound on month periods (`period_start`). Day is ignored; grain is calendar month. An `end_date` before the 15-fiscal-year emit floor returns no rows.",
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Inclusive upper bound on month periods (`period_start`). Day is ignored; grain is calendar month. An `end_date` before the 15-fiscal-year emit floor returns no rows."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicTrialBalancePageOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Dense account x company x month trial-balance rows, same columns as the `trial_balance` table in your data export. Pages are hard-capped at `limit` and may resume mid-account; opening balances stay correct across pages. Optional `company_id`, `account_id`, `start_date`, and `end_date` narrow the walk (dates clamp month periods; balance sheet openings fold life-to-date, income statement openings keep open fiscal-year year-to-date).",
        "tags": [
          "Reporting"
        ],
        "x-mint": {
          "metadata": {
            "description": "Dense account x company x month trial-balance rows, same columns as the `trial_balance` table in your data export."
          },
          "content": "Pages are hard-capped at `limit` and may resume mid-account; opening balances stay correct across pages. Optional `company_id`, `account_id`, `start_date`, and `end_date` narrow the walk (dates clamp month periods; balance sheet openings fold life-to-date, income statement openings keep open fiscal-year year-to-date)."
        }
      }
    },
    "/public/v2/chart_of_accounts/": {
      "get": {
        "operationId": "core_api_public_reporting_chart_of_accounts_list_chart_of_accounts_facts",
        "summary": "List chart of accounts facts",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicChartOfAccountsRowOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Full chart of accounts including inactive accounts, same columns as the `chart_of_accounts` table in your data export. Ordered by account number. Accounts are organization-scoped (not company-filtered).",
        "tags": [
          "Reporting"
        ],
        "x-mint": {
          "metadata": {
            "description": "Full chart of accounts including inactive accounts, same columns as the `chart_of_accounts` table in your data export."
          },
          "content": "Ordered by account number. Accounts are organization-scoped (not company-filtered)."
        }
      }
    },
    "/public/v2/consolidated_rates/": {
      "get": {
        "operationId": "core_api_public_reporting_consolidated_rates_list_consolidated_rates",
        "summary": "List consolidated rates",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of rows to return (capped at 100)",
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of rows to return (capped at 100)"
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "description": "Opaque cursor from a previous response's next_cursor. Omit for the first page.",
              "title": "Cursor",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Opaque cursor from a previous response's next_cursor. Omit for the first page."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicConsolidatedRatesPageOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Company x parent x month consolidation rates, same columns as the `consolidated_rates` table in your data export. Ordered by company, parent, period date, and id. Page with the opaque `cursor` / `next_cursor` pair. Restricted keys see a rate when they can reach the child company or the parent company.",
        "tags": [
          "Reporting"
        ],
        "x-mint": {
          "metadata": {
            "description": "Company x parent x month consolidation rates, same columns as the `consolidated_rates` table in your data export."
          },
          "content": "Ordered by company, parent, period date, and id. Page with the opaque `cursor` / `next_cursor` pair. Restricted keys see a rate when they can reach the child company or the parent company."
        }
      }
    },
    "/public/v2/budgets/": {
      "get": {
        "operationId": "core_api_public_budgets_list_budgets",
        "summary": "List budgets",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "budget_type",
            "schema": {
              "title": "Budget Type",
              "items": {
                "$ref": "#/components/schemas/BudgetTypes"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "calendar_year",
            "schema": {
              "title": "Calendar Year",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "-updated_at",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicBudgetSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of budgets with filtering and search capabilities.",
        "tags": [
          "Budgets"
        ]
      }
    },
    "/public/v2/budgets/{budget_id}/": {
      "get": {
        "operationId": "core_api_public_budgets_get_budget",
        "summary": "Get budget",
        "parameters": [
          {
            "in": "path",
            "name": "budget_id",
            "schema": {
              "title": "Budget Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBudgetSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a budget by ID, including its settings and classifications. Monthly values, actuals, and accounts are separate reads.",
        "tags": [
          "Budgets"
        ]
      }
    },
    "/public/v2/budgets/{budget_id}/cells/": {
      "get": {
        "operationId": "core_api_public_budgets_get_public_budget_cells",
        "summary": "Get budget cells",
        "parameters": [
          {
            "in": "path",
            "name": "budget_id",
            "schema": {
              "title": "Budget Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetBudgetCellsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Read the monthly budgeted amount for each account in the budget.",
        "tags": [
          "Budgets"
        ]
      }
    },
    "/public/v2/budgets/{budget_id}/actuals/": {
      "get": {
        "operationId": "core_api_public_budgets_get_public_budget_actuals",
        "summary": "Get budget actuals",
        "parameters": [
          {
            "in": "path",
            "name": "budget_id",
            "schema": {
              "title": "Budget Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BudgetActualsResponseSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Read the monthly actuals compared with this budget.",
        "tags": [
          "Budgets"
        ]
      }
    },
    "/public/v2/budgets/{budget_id}/accounts/": {
      "get": {
        "operationId": "core_api_public_budgets_get_public_budget_accounts",
        "summary": "Get budget accounts",
        "parameters": [
          {
            "in": "path",
            "name": "budget_id",
            "schema": {
              "title": "Budget Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/BudgetAccountSchemaOut"
                  },
                  "title": "Response",
                  "type": "array"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Read the accounts included in this budget.",
        "tags": [
          "Budgets"
        ]
      }
    },
    "/public/v2/contracts/": {
      "get": {
        "operationId": "core_api_public_contracts_list_contracts",
        "summary": "List Contracts",
        "parameters": [
          {
            "in": "query",
            "name": "integration_sources",
            "schema": {
              "title": "Integration Sources",
              "items": {
                "$ref": "#/components/schemas/IntegrationSourceSlug"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "title": "Status",
              "items": {
                "$ref": "#/components/schemas/ContractStatusFilter"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "contract_start_date",
            "schema": {
              "title": "Contract Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "contract_end_date",
            "schema": {
              "title": "Contract End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "recognition_mode",
            "schema": {
              "title": "Recognition Mode",
              "items": {
                "$ref": "#/components/schemas/RecognitionMode"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "recognition_strategy",
            "schema": {
              "title": "Recognition Strategy",
              "items": {
                "$ref": "#/components/schemas/RecognitionStrategy"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "has_auto_renewal",
            "schema": {
              "title": "Has Auto Renewal",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "has_scheduled_termination",
            "schema": {
              "title": "Has Scheduled Termination",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "days_till_expiry",
            "schema": {
              "title": "Days Till Expiry",
              "type": [
                "integer",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "-updated_at",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedContractListSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of revenue recognition contracts, with filtering and ordering options.",
        "tags": [
          "Contracts"
        ]
      },
      "post": {
        "operationId": "core_api_public_contracts_create_contract",
        "summary": "Create Contract",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContractPublicSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a revenue recognition contract with its performance obligations and recognition schedule. On this version, `quantity` is the quantity for the whole term and `rate` is the unit price for one unit. The save stores a billing period count of 1. Quantity 10 and a unit price of $100 give a total contract value of $1,000.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `status` back to `draft`.",
        "tags": [
          "Contracts"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContractPublicSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a revenue recognition contract with its performance obligations and recognition schedule."
          },
          "content": "On this version, `quantity` is the quantity for the whole term and `rate` is the unit price for one unit. The save stores a billing period count of 1. Quantity 10 and a unit price of $100 give a total contract value of $1,000.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `status` back to `draft`."
        }
      }
    },
    "/public/v2/contracts/{record_id}/": {
      "get": {
        "operationId": "core_api_public_contracts_get_contract",
        "summary": "Get Contract",
        "parameters": [
          {
            "in": "path",
            "name": "record_id",
            "schema": {
              "title": "Record Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContractPublicSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a single revenue recognition contract by record ID, including its performance obligations.",
        "tags": [
          "Contracts"
        ]
      },
      "put": {
        "operationId": "core_api_public_v2_contracts_update_contract",
        "summary": "Update Contract",
        "parameters": [
          {
            "in": "path",
            "name": "record_id",
            "schema": {
              "title": "Record Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContractSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing revenue recognition contract. Direct edits are rejected when usage or an active contract has milestones. Obligation rows superseded by a posted change order, or targeted by a draft change order, cannot be edited.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `status` back to `draft`.",
        "tags": [
          "Contracts"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContractSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing revenue recognition contract."
          },
          "content": "Direct edits are rejected when usage or an active contract has milestones. Obligation rows superseded by a posted change order, or targeted by a draft change order, cannot be edited.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `status` back to `draft`."
        }
      },
      "patch": {
        "operationId": "core_api_public_v2_contracts_patch_contract",
        "summary": "Update Contract (partial)",
        "parameters": [
          {
            "in": "path",
            "name": "record_id",
            "schema": {
              "title": "Record Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContractSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update specific fields on a revenue recognition contract. Send only the fields you want to change. Anything you don't send stays as it is. Direct edits are rejected when usage or an active contract has milestones. Obligation rows superseded by a posted change order, or targeted by a draft change order, cannot be edited.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `status` back to `draft`.",
        "tags": [
          "Contracts"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicContractSchemaPatchIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update specific fields on a revenue recognition contract."
          },
          "content": "Send only the fields you want to change. Anything you don't send stays as it is. Direct edits are rejected when usage or an active contract has milestones. Obligation rows superseded by a posted change order, or targeted by a draft change order, cannot be edited.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `status` back to `draft`."
        }
      }
    },
    "/public/v2/contracts/{contract_id}/milestones/": {
      "get": {
        "operationId": "core_api_public_contracts_list_contract_milestones",
        "summary": "List milestones for a contract",
        "parameters": [
          {
            "in": "path",
            "name": "contract_id",
            "schema": {
              "title": "Contract Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedMilestoneOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Return a paginated list of milestones for a contract, ordered by obligation, date, then id.",
        "tags": [
          "Contracts"
        ]
      }
    },
    "/public/v2/contracts/{contract_id}/usage/": {
      "get": {
        "operationId": "core_api_public_contracts_list_obligation_usage",
        "summary": "List usage records for a contract",
        "parameters": [
          {
            "in": "path",
            "name": "contract_id",
            "schema": {
              "title": "Contract Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ObligationUsageSchemaOut"
                  },
                  "title": "Response",
                  "type": "array"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Return all usage records for a given contract.",
        "tags": [
          "Contracts"
        ]
      }
    },
    "/public/v2/contracts/{contract_id}/usage/bulk-upsert/": {
      "post": {
        "operationId": "core_api_public_contracts_upsert_obligation_usage",
        "summary": "Upsert usage records for contract obligations",
        "parameters": [
          {
            "in": "path",
            "name": "contract_id",
            "schema": {
              "title": "Contract Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ObligationUsageSchemaOut"
                  },
                  "title": "Response",
                  "type": "array"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create or update usage records in batch. Items with an 'id' field are updated; items without are created. Generates revenue recognitions and invoices.",
        "tags": [
          "Contracts"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ObligationUsageBatchIn"
              }
            }
          },
          "required": true
        }
      }
    },
    "/public/v2/contracts/{contract_id}/change-orders/": {
      "get": {
        "operationId": "core_api_public_v2_contracts_list_contract_change_orders",
        "summary": "List Change Orders",
        "parameters": [
          {
            "in": "path",
            "name": "contract_id",
            "schema": {
              "title": "Contract Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "contract_id",
            "schema": {
              "title": "Contract Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "-updated_at",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedContractChangeOrderListSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of change orders for a contract.",
        "tags": [
          "Contracts"
        ]
      },
      "post": {
        "operationId": "core_api_public_v2_contracts_create_contract_change_order",
        "summary": "Create Change Order",
        "parameters": [
          {
            "in": "path",
            "name": "contract_id",
            "schema": {
              "title": "Contract Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContractChangeOrderSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a change order on a contract. `effective_date` is required. An addition requires `item_id`, quantity, and rate. A payload with no modifications or additions is saved as a draft. With an `effective_date` after today, the save keeps this change order as `draft` and applies nothing. With a date of today or earlier, the save validates and applies it.\n\n- An omitted `billing_frequency` or `billing_interval` uses the item catalog before the monthly default.\n- On released v1 and v2, a new obligation stores a billing period count of 1. `quantity` is the quantity for the whole term. On v3, `quantity` is the quantity for each billing period.",
        "tags": [
          "Contracts"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicContractChangeOrderSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a change order on a contract."
          },
          "content": "`effective_date` is required. An addition requires `item_id`, quantity, and rate. A payload with no modifications or additions is saved as a draft. With an `effective_date` after today, the save keeps this change order as `draft` and applies nothing. With a date of today or earlier, the save validates and applies it.\n\n- An omitted `billing_frequency` or `billing_interval` uses the item catalog before the monthly default.\n- On released v1 and v2, a new obligation stores a billing period count of 1. `quantity` is the quantity for the whole term. On v3, `quantity` is the quantity for each billing period."
        }
      }
    },
    "/public/v2/contracts/{contract_id}/change-orders/{change_order_id}/": {
      "get": {
        "operationId": "core_api_public_v2_contracts_get_contract_change_order",
        "summary": "Get Change Order",
        "parameters": [
          {
            "in": "path",
            "name": "contract_id",
            "schema": {
              "title": "Contract Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "change_order_id",
            "schema": {
              "title": "Change Order Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContractChangeOrderSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a single change order by ID for a given contract, including the obligation change summary.",
        "tags": [
          "Contracts"
        ]
      },
      "put": {
        "operationId": "core_api_public_v2_contracts_update_contract_change_order",
        "summary": "Update Change Order",
        "parameters": [
          {
            "in": "path",
            "name": "contract_id",
            "schema": {
              "title": "Contract Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "change_order_id",
            "schema": {
              "title": "Change Order Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContractChangeOrderSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing change order. `effective_date` is required. An addition requires `item_id`, quantity, and rate. A payload with no modifications or additions stays a draft. With an `effective_date` after today, the save keeps this change order as `draft` and applies nothing. With a date of today or earlier, completing required fields applies the change order.\n\n- An omitted `billing_frequency` or `billing_interval` uses the item catalog before the monthly default.\n- On released v1 and v2, a new obligation stores a billing period count of 1. `quantity` is the quantity for the whole term. On v3, `quantity` is the quantity for each billing period.\n\n**Side effects**\n- If this change order was already applied, DualEntry first reverses those changes. DualEntry applies this change order again only if `effective_date` is today or earlier.",
        "tags": [
          "Contracts"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicContractChangeOrderSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing change order."
          },
          "content": "`effective_date` is required. An addition requires `item_id`, quantity, and rate. A payload with no modifications or additions stays a draft. With an `effective_date` after today, the save keeps this change order as `draft` and applies nothing. With a date of today or earlier, completing required fields applies the change order.\n\n- An omitted `billing_frequency` or `billing_interval` uses the item catalog before the monthly default.\n- On released v1 and v2, a new obligation stores a billing period count of 1. `quantity` is the quantity for the whole term. On v3, `quantity` is the quantity for each billing period.\n\n**Side effects**\n- If this change order was already applied, DualEntry first reverses those changes. DualEntry applies this change order again only if `effective_date` is today or earlier."
        }
      },
      "delete": {
        "operationId": "core_api_public_v2_contracts_delete_contract_change_order",
        "summary": "Archive Change Order",
        "parameters": [
          {
            "in": "path",
            "name": "contract_id",
            "schema": {
              "title": "Contract Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "change_order_id",
            "schema": {
              "title": "Change Order Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContractChangeOrderArchiveSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Archive an existing change order (soft delete).\n\n**Side effects**\n- If this change order was already applied, DualEntry reverses the changes this change order applied.",
        "tags": [
          "Contracts"
        ],
        "x-mint": {
          "metadata": {
            "description": "Archive an existing change order (soft delete)."
          },
          "content": "**Side effects**\n- If this change order was already applied, DualEntry reverses the changes this change order applied."
        }
      }
    },
    "/public/v2/customers/": {
      "get": {
        "operationId": "core_api_public_customers_list_customers",
        "summary": "List customers",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_type",
            "schema": {
              "title": "Customer Type",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "title": "Name",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "name_exact",
            "schema": {
              "title": "Name Exact",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "unique_id",
            "schema": {
              "title": "Unique Id",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "email",
            "schema": {
              "title": "Email",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "website",
            "schema": {
              "title": "Website",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "address",
            "schema": {
              "title": "Address",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "country",
            "schema": {
              "title": "Country",
              "items": {
                "$ref": "#/components/schemas/SystemCountries"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "state",
            "schema": {
              "title": "State",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "phone",
            "schema": {
              "title": "Phone",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "merged_into_id",
            "schema": {
              "description": "Return customers merged into any of these customer IDs.",
              "title": "Merged Into Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Return customers merged into any of these customer IDs."
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_active",
            "schema": {
              "title": "Is Active",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "parent_id",
            "schema": {
              "description": "Parent customer IDs. Use \"null\" to match root customers (no parent).",
              "title": "Parent Id",
              "items": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "$ref": "#/components/schemas/SentinelValueForFilters"
                  }
                ]
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Parent customer IDs. Use \"null\" to match root customers (no parent)."
          },
          {
            "in": "query",
            "name": "company_id_access",
            "schema": {
              "title": "Company Id Access",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "-updated_at",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedCustomerListSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of customers with filtering, search, and ordering capabilities.",
        "tags": [
          "Customers"
        ]
      },
      "post": {
        "operationId": "core_api_public_customers_create_customer",
        "summary": "Create customer",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new customer record with address information.\n\nSet `is_taxable` to `false` to create a tax-exempt customer (for example resellers, government agencies, or qualifying non-profits). Omit the field to use the default (`false`).\n\n**Side effects**\n- When you create a child customer, DualEntry sets its company access to the company access of its root customer.\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when you set `allowed_company_ids` on a child customer, or when you create a child customer with its own company access.\n- Fails with `422` when the default AR account is not an accounts receivable account in your organization.\n- Fails with `422` when you create a customer with `customer_type` `intercompany`, or when you change `customer_type` to or from `intercompany`.",
        "tags": [
          "Customers"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new customer record with address information."
          },
          "content": "Set `is_taxable` to `false` to create a tax-exempt customer (for example resellers, government agencies, or qualifying non-profits). Omit the field to use the default (`false`).\n\n**Side effects**\n- When you create a child customer, DualEntry sets its company access to the company access of its root customer.\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when you set `allowed_company_ids` on a child customer, or when you create a child customer with its own company access.\n- Fails with `422` when the default AR account is not an accounts receivable account in your organization.\n- Fails with `422` when you create a customer with `customer_type` `intercompany`, or when you change `customer_type` to or from `intercompany`."
        }
      }
    },
    "/public/v2/customers/merge/": {
      "post": {
        "operationId": "core_api_public_customers_merge_duplicate_customers",
        "summary": "Merge customers",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerMergeResultSchemaOut"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "417": {
            "description": "Expectation Failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Merge the duplicate customers in `source_customer_ids` into the survivor in `target_customer_id`. For each field, `field_sources` and `custom_field_sources` select the customer that gives the value. A field that you do not name keeps the survivor value. When that value is empty, the field gets the first duplicate value. The survivor always keeps its default currency, and you cannot undo a merge.\n\n**Side effects**\n- DualEntry moves the records, attachments, payment methods and company access of the duplicate customers to the survivor.\n- DualEntry archives each duplicate customer and sets its `merged_into_id` to the survivor.\n- When the survivor takes the name of a duplicate, DualEntry adds `(merged into <survivor code>)` to the name of that duplicate.\n- When the survivor has no Stripe mapping, DualEntry moves the Stripe mapping of a duplicate to the survivor. DualEntry removes all other integration mappings of the duplicates.\n- DualEntry sends one `core.customer/merged` webhook event for each duplicate customer.\n\n**Additional validations**\n- Fails with `422` when a customer has child customers or is an intercompany customer. It also fails when the customers have different subsidiaries, tax IDs, tax registration numbers, or VAT or GST registrations.\n- Fails with `422` when the merge must move or read more than 20,000 rows. It also fails when your API key cannot access a company where the duplicates have records. The same rule applies to a company that the merge adds to the company access of the survivor. A selected `company_access` must include each company where the customers have records.\n- Fails with `422` when a duplicate customer has transactions in a locked AR period. Bill, direct expense and vendor credit lines that bill a customer use the AP lock.\n- Fails with `422` when `field_sources` or `custom_field_sources` selects a customer that is not in the merge, or a custom field that does not exist.\n- Fails with `409` when another merge uses one of the customers.\n- Fails with `417` when the merge does not finish in 25 seconds. No data changes.",
        "tags": [
          "Customers"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerMergeSchemaIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Merge the duplicate customers in `source_customer_ids` into the survivor in `target_customer_id`."
          },
          "content": "For each field, `field_sources` and `custom_field_sources` select the customer that gives the value. A field that you do not name keeps the survivor value. When that value is empty, the field gets the first duplicate value. The survivor always keeps its default currency, and you cannot undo a merge.\n\n**Side effects**\n- DualEntry moves the records, attachments, payment methods and company access of the duplicate customers to the survivor.\n- DualEntry archives each duplicate customer and sets its `merged_into_id` to the survivor.\n- When the survivor takes the name of a duplicate, DualEntry adds `(merged into <survivor code>)` to the name of that duplicate.\n- When the survivor has no Stripe mapping, DualEntry moves the Stripe mapping of a duplicate to the survivor. DualEntry removes all other integration mappings of the duplicates.\n- DualEntry sends one `core.customer/merged` webhook event for each duplicate customer.\n\n**Additional validations**\n- Fails with `422` when a customer has child customers or is an intercompany customer. It also fails when the customers have different subsidiaries, tax IDs, tax registration numbers, or VAT or GST registrations.\n- Fails with `422` when the merge must move or read more than 20,000 rows. It also fails when your API key cannot access a company where the duplicates have records. The same rule applies to a company that the merge adds to the company access of the survivor. A selected `company_access` must include each company where the customers have records.\n- Fails with `422` when a duplicate customer has transactions in a locked AR period. Bill, direct expense and vendor credit lines that bill a customer use the AP lock.\n- Fails with `422` when `field_sources` or `custom_field_sources` selects a customer that is not in the merge, or a custom field that does not exist.\n- Fails with `409` when another merge uses one of the customers.\n- Fails with `417` when the merge does not finish in 25 seconds. No data changes."
        }
      }
    },
    "/public/v2/customers/{customer_id}/": {
      "get": {
        "operationId": "core_api_public_customers_get_customer",
        "summary": "Get customer",
        "parameters": [
          {
            "in": "path",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific customer by ID.",
        "tags": [
          "Customers"
        ]
      },
      "put": {
        "operationId": "core_api_public_customers_update_customer",
        "summary": "Update customer",
        "parameters": [
          {
            "in": "path",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update a customer. Send only the fields you want to change. A field that you do not send keeps its stored value.\n\nSet `is_taxable` to `false` to mark the customer as tax-exempt, or `true` to make them taxable. Omit the field to leave the current value unchanged.\n\nTo set a custom field, use its name as the key:\n\n```json\n{\"custom_fields\": [{\"Partner\": true}, {\"Tier\": \"Gold\"}]}\n```\n\nEach item is an object with one key. The key is the name of the custom field, and the value is the value to set. Send `null` to clear a field. If the name does not match a custom field in your organization, the request fails with `422`.\n\nIf you know the `id` of the custom field, you can also use the nested shape. You can mix both shapes in one request:\n\n```json\n{\"custom_fields\": [{\"field\": {\"id\": 42}, \"value\": {\"custom_field_id\": 42, \"value\": \"Acme\"}}]}\n```\n\nIf two custom fields have the same name, a name key cannot tell them apart. Use the nested shape for those fields.\n\n**Side effects**\n- When you send `attachments` on an update, DualEntry replaces the stored attachment set with the list you send.\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when you set `allowed_company_ids` on a child customer, or when you create a child customer with its own company access.\n- Fails with `422` when you set a default AR account on an intercompany customer.\n- Fails with `422` when the default AR account is not an accounts receivable account in your organization.\n- Fails with `422` when `parent_id` would create a circular parent relationship.\n- Fails with `422` when you create a customer with `customer_type` `intercompany`, or when you change `customer_type` to or from `intercompany`.\n- Fails with `422` when you change `customer_type` from `company` while the customer has VAT or GST registrations. To clear them, send `vat_registration_numbers` and `gst_registration_numbers` as empty lists in the same request.\n- Fails with `422` when the request archives the customer while a recurring template that is not archived uses it.",
        "tags": [
          "Customers"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update a customer."
          },
          "content": "Send only the fields you want to change. A field that you do not send keeps its stored value.\n\nSet `is_taxable` to `false` to mark the customer as tax-exempt, or `true` to make them taxable. Omit the field to leave the current value unchanged.\n\nTo set a custom field, use its name as the key:\n\n```json\n{\"custom_fields\": [{\"Partner\": true}, {\"Tier\": \"Gold\"}]}\n```\n\nEach item is an object with one key. The key is the name of the custom field, and the value is the value to set. Send `null` to clear a field. If the name does not match a custom field in your organization, the request fails with `422`.\n\nIf you know the `id` of the custom field, you can also use the nested shape. You can mix both shapes in one request:\n\n```json\n{\"custom_fields\": [{\"field\": {\"id\": 42}, \"value\": {\"custom_field_id\": 42, \"value\": \"Acme\"}}]}\n```\n\nIf two custom fields have the same name, a name key cannot tell them apart. Use the nested shape for those fields.\n\n**Side effects**\n- When you send `attachments` on an update, DualEntry replaces the stored attachment set with the list you send.\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when you set `allowed_company_ids` on a child customer, or when you create a child customer with its own company access.\n- Fails with `422` when you set a default AR account on an intercompany customer.\n- Fails with `422` when the default AR account is not an accounts receivable account in your organization.\n- Fails with `422` when `parent_id` would create a circular parent relationship.\n- Fails with `422` when you create a customer with `customer_type` `intercompany`, or when you change `customer_type` to or from `intercompany`.\n- Fails with `422` when you change `customer_type` from `company` while the customer has VAT or GST registrations. To clear them, send `vat_registration_numbers` and `gst_registration_numbers` as empty lists in the same request.\n- Fails with `422` when the request archives the customer while a recurring template that is not archived uses it."
        }
      },
      "patch": {
        "operationId": "core_api_public_customers_patch_customer",
        "summary": "Update customer (partial)",
        "parameters": [
          {
            "in": "path",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update specific fields on a customer. Send only the fields you want to change. Anything you don't send stays as it is. To clear a nullable field, send `null`.\n\nSet `is_taxable` to `false` to mark the customer as tax-exempt, or `true` to make them taxable. Omit the field to leave the current value unchanged.\n\nTo rename a customer, send:\n\n```json\n{\"name\": \"Acme Holdings, Inc.\"}\n```\n\nTo update phone and website together, send:\n\n```json\n{\"phone\": \"555-0199\", \"website\": \"https://acme.example\"}\n```\n\n**Custom fields**\n\nSet custom fields by name:\n\n```json\n{\"custom_fields\": [{\"Partner\": true}, {\"Tier\": \"Gold\"}]}\n```\n\nEach item is a one-key object where the key is the custom field's name and the value is whatever you want to set. Use `null` to clear a field. If the name doesn't match a custom field in your organization, the API returns a `422` instead of silently ignoring it. If you happen to have two custom fields with the same name, use the id-based shape:\n\n```json\n{\"custom_fields\": [{\"field\": {\"id\": 42}, \"value\": {\"custom_field_id\": 42, \"value\": \"Acme\"}}]}\n```\n\nOmitting `custom_fields` from the request leaves existing values untouched.\n\n**Side effects**\n- When you send `attachments` on an update, DualEntry replaces the stored attachment set with the list you send.\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when you set `allowed_company_ids` on a child customer, or when you create a child customer with its own company access.\n- Fails with `422` when you set a default AR account on an intercompany customer.\n- Fails with `422` when the default AR account is not an accounts receivable account in your organization.\n- Fails with `422` when `parent_id` would create a circular parent relationship.\n- Fails with `422` when you create a customer with `customer_type` `intercompany`, or when you change `customer_type` to or from `intercompany`.\n- Fails with `422` when you change `customer_type` from `company` while the customer has VAT or GST registrations. To clear them, send `vat_registration_numbers` and `gst_registration_numbers` as empty lists in the same request.\n- Fails with `422` when the request archives the customer while a recurring template that is not archived uses it.",
        "tags": [
          "Customers"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerSchemaPatchIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update specific fields on a customer."
          },
          "content": "Send only the fields you want to change. Anything you don't send stays as it is. To clear a nullable field, send `null`.\n\nSet `is_taxable` to `false` to mark the customer as tax-exempt, or `true` to make them taxable. Omit the field to leave the current value unchanged.\n\nTo rename a customer, send:\n\n```json\n{\"name\": \"Acme Holdings, Inc.\"}\n```\n\nTo update phone and website together, send:\n\n```json\n{\"phone\": \"555-0199\", \"website\": \"https://acme.example\"}\n```\n\n**Custom fields**\n\nSet custom fields by name:\n\n```json\n{\"custom_fields\": [{\"Partner\": true}, {\"Tier\": \"Gold\"}]}\n```\n\nEach item is a one-key object where the key is the custom field's name and the value is whatever you want to set. Use `null` to clear a field. If the name doesn't match a custom field in your organization, the API returns a `422` instead of silently ignoring it. If you happen to have two custom fields with the same name, use the id-based shape:\n\n```json\n{\"custom_fields\": [{\"field\": {\"id\": 42}, \"value\": {\"custom_field_id\": 42, \"value\": \"Acme\"}}]}\n```\n\nOmitting `custom_fields` from the request leaves existing values untouched.\n\n**Side effects**\n- When you send `attachments` on an update, DualEntry replaces the stored attachment set with the list you send.\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when you set `allowed_company_ids` on a child customer, or when you create a child customer with its own company access.\n- Fails with `422` when you set a default AR account on an intercompany customer.\n- Fails with `422` when the default AR account is not an accounts receivable account in your organization.\n- Fails with `422` when `parent_id` would create a circular parent relationship.\n- Fails with `422` when you create a customer with `customer_type` `intercompany`, or when you change `customer_type` to or from `intercompany`.\n- Fails with `422` when you change `customer_type` from `company` while the customer has VAT or GST registrations. To clear them, send `vat_registration_numbers` and `gst_registration_numbers` as empty lists in the same request.\n- Fails with `422` when the request archives the customer while a recurring template that is not archived uses it."
        }
      },
      "delete": {
        "operationId": "core_api_public_customers_delete_customer",
        "summary": "Delete customer",
        "parameters": [
          {
            "in": "path",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Delete a customer by ID.\n\n**Side effects**\n- DualEntry first marks the attachments of the customer as deleted.\n\n**Additional validations**\n- Fails with `422` if the customer is referenced by other records.",
        "tags": [
          "Customers"
        ],
        "x-mint": {
          "metadata": {
            "description": "Delete a customer by ID."
          },
          "content": "**Side effects**\n- DualEntry first marks the attachments of the customer as deleted.\n\n**Additional validations**\n- Fails with `422` if the customer is referenced by other records."
        }
      }
    },
    "/public/v2/items/": {
      "get": {
        "operationId": "core_api_public_items_list_items",
        "summary": "List Items",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "sku",
            "schema": {
              "description": "Filter by SKU. Pass one or more values for an exact match. Use `search` for partial matches.",
              "title": "Sku",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by SKU. Pass one or more values for an exact match. Use `search` for partial matches."
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "title": "Name",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "item_type",
            "schema": {
              "title": "Item Type",
              "items": {
                "$ref": "#/components/schemas/ItemTypes"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "no_income_account",
            "schema": {
              "title": "No Income Account",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "no_expense_account",
            "schema": {
              "title": "No Expense Account",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "no_deferral_account",
            "schema": {
              "title": "No Deferral Account",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "no_asset_account",
            "schema": {
              "title": "No Asset Account",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "no_discount_account",
            "schema": {
              "title": "No Discount Account",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "expense_account_id",
            "schema": {
              "title": "Expense Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "income_account_id",
            "schema": {
              "title": "Income Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "deferral_account_id",
            "schema": {
              "title": "Deferral Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "asset_account_id",
            "schema": {
              "title": "Asset Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "product_tax_code_id",
            "schema": {
              "title": "Product Tax Code Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "discount_account_id",
            "schema": {
              "title": "Discount Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_active",
            "schema": {
              "title": "Is Active",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "show_inactive",
            "schema": {
              "default": false,
              "title": "Show Inactive",
              "type": "boolean"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "-updated_at",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicItemSchemaOut"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of items (products and services), with filtering and ordering options.",
        "tags": [
          "Items"
        ]
      },
      "post": {
        "operationId": "core_api_public_items_create_item",
        "summary": "Create Item",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicItemSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create an item (product or service) with pricing, description, and revenue or expense accounts.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.",
        "tags": [
          "Items"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicItemSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create an item (product or service) with pricing, description, and revenue or expense accounts."
          },
          "content": "**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`."
        }
      }
    },
    "/public/v2/items/{item_id}/": {
      "get": {
        "operationId": "core_api_public_items_get_item",
        "summary": "Get Item",
        "parameters": [
          {
            "in": "path",
            "name": "item_id",
            "schema": {
              "title": "Item Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicItemSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a single item by ID, including its pricing and associated accounts.",
        "tags": [
          "Items"
        ]
      },
      "put": {
        "operationId": "core_api_public_items_update_item",
        "summary": "Update Item",
        "parameters": [
          {
            "in": "path",
            "name": "item_id",
            "schema": {
              "title": "Item Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicItemSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing item's pricing, description, and associated accounts.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.",
        "tags": [
          "Items"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicItemSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing item's pricing, description, and associated accounts."
          },
          "content": "**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`."
        }
      },
      "patch": {
        "operationId": "core_api_public_items_patch_item",
        "summary": "Update Item (partial)",
        "parameters": [
          {
            "in": "path",
            "name": "item_id",
            "schema": {
              "title": "Item Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicItemSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update specific fields on an item. Send only the fields you want to change. Anything you don't send stays as it is. To clear a nullable field, send `null`.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.",
        "tags": [
          "Items"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicItemSchemaPatchIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update specific fields on an item."
          },
          "content": "Send only the fields you want to change. Anything you don't send stays as it is. To clear a nullable field, send `null`.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`."
        }
      },
      "delete": {
        "operationId": "core_api_public_items_delete_item",
        "summary": "Archive Item",
        "parameters": [
          {
            "in": "path",
            "name": "item_id",
            "schema": {
              "title": "Item Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Archive an item so it can no longer be added to invoices or bills.\n\n**Additional validations**\n- Fails with `422` if a record that is not archived uses the item, or if an immutable-record policy blocks the change.",
        "tags": [
          "Items"
        ],
        "x-mint": {
          "metadata": {
            "description": "Archive an item so it can no longer be added to invoices or bills."
          },
          "content": "**Additional validations**\n- Fails with `422` if a record that is not archived uses the item, or if an immutable-record policy blocks the change."
        }
      }
    },
    "/public/v2/vendors/": {
      "get": {
        "operationId": "core_api_public_vendors_list_vendors",
        "summary": "List vendors",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_type",
            "schema": {
              "title": "Vendor Type",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "title": "Name",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "unique_id",
            "schema": {
              "title": "Unique Id",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "email",
            "schema": {
              "title": "Email",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "website",
            "schema": {
              "title": "Website",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "single_address",
            "schema": {
              "title": "Single Address",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "country",
            "schema": {
              "title": "Country",
              "items": {
                "$ref": "#/components/schemas/SystemCountries"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "state",
            "schema": {
              "title": "State",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "phone",
            "schema": {
              "title": "Phone",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_active",
            "schema": {
              "title": "Is Active",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_1099_eligible",
            "schema": {
              "title": "Is 1099 Eligible",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "tin",
            "schema": {
              "title": "Tin",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "merged_into_id",
            "schema": {
              "title": "Merged Into Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "exclude_company_id",
            "schema": {
              "title": "Exclude Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "names",
            "schema": {
              "title": "Names",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "view",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ListView"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id_access",
            "schema": {
              "title": "Company Id Access",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "-updated_at",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicVendorListSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of vendors with filtering, search, and ordering capabilities.",
        "tags": [
          "Vendors"
        ]
      },
      "post": {
        "operationId": "core_api_public_vendors_create_vendor",
        "summary": "Create vendor",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new vendor record with address and payment information.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when the default AP account is not an accounts payable account in your organization.\n- Fails with `422` when you create a vendor with `vendor_type` `intercompany`, or when you change `vendor_type` to or from `intercompany`.",
        "tags": [
          "Vendors"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicVendorSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new vendor record with address and payment information."
          },
          "content": "**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when the default AP account is not an accounts payable account in your organization.\n- Fails with `422` when you create a vendor with `vendor_type` `intercompany`, or when you change `vendor_type` to or from `intercompany`."
        }
      }
    },
    "/public/v2/vendors/merge/": {
      "post": {
        "operationId": "core_api_public_vendors_merge_duplicate_vendors",
        "summary": "Merge vendors",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorMergeResultSchemaOut"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "417": {
            "description": "Expectation Failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Merge the duplicate vendors in `source_vendor_ids` into the survivor in `target_vendor_id`. For each field, `field_sources` and `custom_field_sources` select the vendor that gives the value. A field that you do not name keeps the survivor value. When that value is empty, the field gets the first duplicate value. The survivor always keeps its bank and payment details, and you cannot undo a merge.\n\n**Side effects**\n- DualEntry moves all records, attachments and company access of the duplicate vendors to the survivor vendor.\n- DualEntry archives the duplicate vendors and sets their merged_into_id to the survivor vendor.\n- When the survivor takes the name of a duplicate vendor, DualEntry adds `(merged into <survivor code>)` to the name of that duplicate.\n- DualEntry sets each changed open 1099 run back to draft. Compute these runs again.\n- DualEntry sends one core.vendor/merged webhook event for each duplicate vendor.\n\n**Additional validations**\n- Fails with `422` when a vendor is an intercompany vendor, or when a 1099 run for these vendors is in progress. It also fails when the vendors have different subsidiaries, tax IDs, or VAT or GST registrations.\n- Fails with `422` when the merge must move or read more than 20,000 rows. It also fails when your API key cannot access a company where the duplicates have records. The same rule applies to a company that the merge adds to the company access of the survivor. A selected `company_access` must include each company where the vendors have records.\n- Fails with `422` when `field_sources` or `custom_field_sources` selects a vendor that is not in the merge, or a custom field that does not exist.\n- Fails with `409` when another merge uses one of the vendors.\n- Fails with `417` when the merge does not finish in 25 seconds. No data changes.",
        "tags": [
          "Vendors"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorMergeSchemaIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Merge the duplicate vendors in `source_vendor_ids` into the survivor in `target_vendor_id`."
          },
          "content": "For each field, `field_sources` and `custom_field_sources` select the vendor that gives the value. A field that you do not name keeps the survivor value. When that value is empty, the field gets the first duplicate value. The survivor always keeps its bank and payment details, and you cannot undo a merge.\n\n**Side effects**\n- DualEntry moves all records, attachments and company access of the duplicate vendors to the survivor vendor.\n- DualEntry archives the duplicate vendors and sets their merged_into_id to the survivor vendor.\n- When the survivor takes the name of a duplicate vendor, DualEntry adds `(merged into <survivor code>)` to the name of that duplicate.\n- DualEntry sets each changed open 1099 run back to draft. Compute these runs again.\n- DualEntry sends one core.vendor/merged webhook event for each duplicate vendor.\n\n**Additional validations**\n- Fails with `422` when a vendor is an intercompany vendor, or when a 1099 run for these vendors is in progress. It also fails when the vendors have different subsidiaries, tax IDs, or VAT or GST registrations.\n- Fails with `422` when the merge must move or read more than 20,000 rows. It also fails when your API key cannot access a company where the duplicates have records. The same rule applies to a company that the merge adds to the company access of the survivor. A selected `company_access` must include each company where the vendors have records.\n- Fails with `422` when `field_sources` or `custom_field_sources` selects a vendor that is not in the merge, or a custom field that does not exist.\n- Fails with `409` when another merge uses one of the vendors.\n- Fails with `417` when the merge does not finish in 25 seconds. No data changes."
        }
      }
    },
    "/public/v2/vendors/{vendor_id}/": {
      "get": {
        "operationId": "core_api_public_vendors_get_vendor",
        "summary": "Get vendor",
        "parameters": [
          {
            "in": "path",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific vendor by ID with address, attachments, and payment information.",
        "tags": [
          "Vendors"
        ]
      },
      "put": {
        "operationId": "core_api_public_vendors_update_vendor",
        "summary": "Update vendor",
        "parameters": [
          {
            "in": "path",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update a vendor. Send only the fields you want to change. A field that you do not send keeps its stored value.\n\nTo set a custom field, use its name as the key:\n\n```json\n{\"custom_fields\": [{\"Partner\": true}, {\"Tier\": \"Gold\"}]}\n```\n\nEach item is an object with one key. The key is the name of the custom field, and the value is the value to set. Send `null` to clear a field. If the name does not match a custom field in your organization, the request fails with `422`.\n\nIf you know the `id` of the custom field, you can also use the nested shape. You can mix both shapes in one request:\n\n```json\n{\"custom_fields\": [{\"field\": {\"id\": 42}, \"value\": {\"custom_field_id\": 42, \"value\": \"Acme\"}}]}\n```\n\nIf two custom fields have the same name, a name key cannot tell them apart. Use the nested shape for those fields.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when the default AP account is not an accounts payable account in your organization.\n- Fails with `422` when you create a vendor with `vendor_type` `intercompany`, or when you change `vendor_type` to or from `intercompany`.\n- Fails with `422` when the request archives the vendor while a recurring template that is not archived uses it.",
        "tags": [
          "Vendors"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicVendorSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update a vendor."
          },
          "content": "Send only the fields you want to change. A field that you do not send keeps its stored value.\n\nTo set a custom field, use its name as the key:\n\n```json\n{\"custom_fields\": [{\"Partner\": true}, {\"Tier\": \"Gold\"}]}\n```\n\nEach item is an object with one key. The key is the name of the custom field, and the value is the value to set. Send `null` to clear a field. If the name does not match a custom field in your organization, the request fails with `422`.\n\nIf you know the `id` of the custom field, you can also use the nested shape. You can mix both shapes in one request:\n\n```json\n{\"custom_fields\": [{\"field\": {\"id\": 42}, \"value\": {\"custom_field_id\": 42, \"value\": \"Acme\"}}]}\n```\n\nIf two custom fields have the same name, a name key cannot tell them apart. Use the nested shape for those fields.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when the default AP account is not an accounts payable account in your organization.\n- Fails with `422` when you create a vendor with `vendor_type` `intercompany`, or when you change `vendor_type` to or from `intercompany`.\n- Fails with `422` when the request archives the vendor while a recurring template that is not archived uses it."
        }
      },
      "patch": {
        "operationId": "core_api_public_vendors_patch_vendor",
        "summary": "Update vendor (partial)",
        "parameters": [
          {
            "in": "path",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVendorSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update specific fields on a vendor. Send only the fields you want to change \u2014 anything you don't send stays as it is. To clear a nullable field, send `null`.\n\nExample \u2014 rename a vendor and update its TIN:\n\n```json\n{\"name\": \"Acme Supply Co.\", \"tin\": \"12-3456789\", \"tin_type\": \"ein\"}\n```\n\nExample \u2014 change payment routing:\n\n```json\n{\"bank_account_number\": \"000123456789\", \"bank_routing_number\": \"021000021\"}\n```\n\nExisting attachments are preserved unless you explicitly send the `attachments` field; use the dedicated attachments endpoint to manage them.\n\n**Custom fields**\n\nSet custom fields by name:\n\n```json\n{\"custom_fields\": [{\"Partner\": true}, {\"Tier\": \"Gold\"}]}\n```\n\nEach item is a one-key object where the key is the custom field's name and the value is whatever you want to set. Use `null` to clear a field. If the name doesn't match a custom field in your organization you'll get a 422 back \u2014 we won't silently ignore it. If you happen to have two custom fields with the same name, use the id-based shape:\n\n```json\n{\"custom_fields\": [{\"field\": {\"id\": 42}, \"value\": {\"custom_field_id\": 42, \"value\": \"Acme\"}}]}\n```\n\nOmitting `custom_fields` from the request leaves existing values untouched.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when the default AP account is not an accounts payable account in your organization.\n- Fails with `422` when you create a vendor with `vendor_type` `intercompany`, or when you change `vendor_type` to or from `intercompany`.\n- Fails with `422` when the request archives the vendor while a recurring template that is not archived uses it.",
        "tags": [
          "Vendors"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicVendorSchemaPatchIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update specific fields on a vendor."
          },
          "content": "Send only the fields you want to change \u2014 anything you don't send stays as it is. To clear a nullable field, send `null`.\n\nExample \u2014 rename a vendor and update its TIN:\n\n```json\n{\"name\": \"Acme Supply Co.\", \"tin\": \"12-3456789\", \"tin_type\": \"ein\"}\n```\n\nExample \u2014 change payment routing:\n\n```json\n{\"bank_account_number\": \"000123456789\", \"bank_routing_number\": \"021000021\"}\n```\n\nExisting attachments are preserved unless you explicitly send the `attachments` field; use the dedicated attachments endpoint to manage them.\n\n**Custom fields**\n\nSet custom fields by name:\n\n```json\n{\"custom_fields\": [{\"Partner\": true}, {\"Tier\": \"Gold\"}]}\n```\n\nEach item is a one-key object where the key is the custom field's name and the value is whatever you want to set. Use `null` to clear a field. If the name doesn't match a custom field in your organization you'll get a 422 back \u2014 we won't silently ignore it. If you happen to have two custom fields with the same name, use the id-based shape:\n\n```json\n{\"custom_fields\": [{\"field\": {\"id\": 42}, \"value\": {\"custom_field_id\": 42, \"value\": \"Acme\"}}]}\n```\n\nOmitting `custom_fields` from the request leaves existing values untouched.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` when the default AP account is not an accounts payable account in your organization.\n- Fails with `422` when you create a vendor with `vendor_type` `intercompany`, or when you change `vendor_type` to or from `intercompany`.\n- Fails with `422` when the request archives the vendor while a recurring template that is not archived uses it."
        }
      },
      "delete": {
        "operationId": "core_api_public_vendors_delete_vendor",
        "summary": "Delete vendor",
        "parameters": [
          {
            "in": "path",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Delete a vendor by ID.\n\n**Side effects**\n- DualEntry first marks the attachments of the vendor as deleted.\n\n**Additional validations**\n- Fails with `422` if the vendor is referenced by other records.",
        "tags": [
          "Vendors"
        ],
        "x-mint": {
          "metadata": {
            "description": "Delete a vendor by ID."
          },
          "content": "**Side effects**\n- DualEntry first marks the attachments of the vendor as deleted.\n\n**Additional validations**\n- Fails with `422` if the vendor is referenced by other records."
        }
      }
    },
    "/public/v2/classifications/": {
      "get": {
        "operationId": "core_api_public_classifications_list_classifications",
        "summary": "List Classifications",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "title": "Name",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_active",
            "schema": {
              "title": "Is Active",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_required",
            "schema": {
              "title": "Is Required",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "-updated_at",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicClassificationSchemaOut"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of classification dimensions, such as departments, locations, or projects.",
        "tags": [
          "Classifications"
        ]
      },
      "post": {
        "operationId": "core_api_public_classifications_create_classification",
        "summary": "Create Classification",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicClassificationSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a classification dimension used to tag and analyze transactions across multiple dimensions.\n\n**Side effects**\n- If an approval workflow matches this classification, or a selection you create or change, DualEntry can set `is_active` to `false` on this classification or on that selection.",
        "tags": [
          "Classifications"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicClassificationSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a classification dimension used to tag and analyze transactions across multiple dimensions."
          },
          "content": "**Side effects**\n- If an approval workflow matches this classification, or a selection you create or change, DualEntry can set `is_active` to `false` on this classification or on that selection."
        }
      }
    },
    "/public/v2/classifications/{classification_id}/": {
      "get": {
        "operationId": "core_api_public_classifications_get_classification",
        "summary": "Get Classification",
        "parameters": [
          {
            "in": "path",
            "name": "classification_id",
            "schema": {
              "title": "Classification Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicClassificationSchemaOut"
                }
              }
            }
          }
        },
        "description": "Retrieve a single classification dimension by ID.",
        "tags": [
          "Classifications"
        ]
      },
      "put": {
        "operationId": "core_api_public_classifications_update_classification",
        "summary": "Update Classification",
        "parameters": [
          {
            "in": "path",
            "name": "classification_id",
            "schema": {
              "title": "Classification Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicClassificationSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing classification dimension's name and settings.\n\n**Side effects**\n- If an approval workflow matches this classification, or a selection you create or change, DualEntry can set `is_active` to `false` on this classification or on that selection.",
        "tags": [
          "Classifications"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicClassificationSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing classification dimension's name and settings."
          },
          "content": "**Side effects**\n- If an approval workflow matches this classification, or a selection you create or change, DualEntry can set `is_active` to `false` on this classification or on that selection."
        }
      },
      "patch": {
        "operationId": "core_api_public_classifications_patch_classification",
        "summary": "Update classification (partial)",
        "parameters": [
          {
            "in": "path",
            "name": "classification_id",
            "schema": {
              "title": "Classification Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicClassificationSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update specific fields on a classification. Send only the fields you want to change. Anything you don't send stays as it is. Use `null` on `parent_id` to remove a parent.\n\nTo rename and deactivate a classification, send:\n\n```json\n{\"name\": \"Department (legacy)\", \"is_active\": false}\n```\n\n**Selections (classification lines)**\n\nOmitting `selections` preserves the existing lines. Sending the field applies it as-is: lines whose `id` you include are kept (and updated with whatever values you send), and lines whose `id` you omit are deleted. Sending `[]` removes every line. Adding a new line means sending it without an `id`:\n\n```json\n{\"selections\": [\n  {\"id\": 42, \"name\": \"Engineering\", \"is_active\": true, \"parent_id\": null},\n  {\"name\": \"Operations\", \"is_active\": true, \"parent_id\": null}\n]}\n```\n\n**Required-for-records**\n\nOmitting `required_for_records` preserves existing associations. Sending the field replaces the full set; sending `[]` removes them all:\n\n```json\n{\"required_for_records\": [\"invoice\", \"bill\"]}\n```\n\nLines that are in use elsewhere can't be deleted; you'll get a `422` back listing which ones.\n\n**Side effects**\n- If an approval workflow matches this classification, or a selection you create or change, DualEntry can set `is_active` to `false` on this classification or on that selection.",
        "tags": [
          "Classifications"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicClassificationSchemaPatchIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update specific fields on a classification."
          },
          "content": "Send only the fields you want to change. Anything you don't send stays as it is. Use `null` on `parent_id` to remove a parent.\n\nTo rename and deactivate a classification, send:\n\n```json\n{\"name\": \"Department (legacy)\", \"is_active\": false}\n```\n\n**Selections (classification lines)**\n\nOmitting `selections` preserves the existing lines. Sending the field applies it as-is: lines whose `id` you include are kept (and updated with whatever values you send), and lines whose `id` you omit are deleted. Sending `[]` removes every line. Adding a new line means sending it without an `id`:\n\n```json\n{\"selections\": [\n  {\"id\": 42, \"name\": \"Engineering\", \"is_active\": true, \"parent_id\": null},\n  {\"name\": \"Operations\", \"is_active\": true, \"parent_id\": null}\n]}\n```\n\n**Required-for-records**\n\nOmitting `required_for_records` preserves existing associations. Sending the field replaces the full set; sending `[]` removes them all:\n\n```json\n{\"required_for_records\": [\"invoice\", \"bill\"]}\n```\n\nLines that are in use elsewhere can't be deleted; you'll get a `422` back listing which ones.\n\n**Side effects**\n- If an approval workflow matches this classification, or a selection you create or change, DualEntry can set `is_active` to `false` on this classification or on that selection."
        }
      },
      "delete": {
        "operationId": "core_api_public_classifications_delete_classification",
        "summary": "Delete Classification",
        "parameters": [
          {
            "in": "path",
            "name": "classification_id",
            "schema": {
              "title": "Classification Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Delete a classification dimension so it can no longer be assigned to transactions.\n\n**Side effects**\n- DualEntry also removes this classification's lines.",
        "tags": [
          "Classifications"
        ]
      }
    },
    "/public/v2/classifications-lines/": {
      "get": {
        "operationId": "core_api_public_classifications_list_classification_lines",
        "summary": "List Classification Lines",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "title": "Name",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_active",
            "schema": {
              "title": "Is Active",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "classification_id",
            "schema": {
              "title": "Classification Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "-id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicClassificationLineSchemaOut"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of classification values that can be assigned to transaction line items.",
        "tags": [
          "Classifications Lines"
        ]
      }
    },
    "/public/v2/custom-fields/": {
      "get": {
        "operationId": "core_api_public_custom_fields_list_custom_fields",
        "summary": "List custom fields",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "field_type",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/FieldType"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_active",
            "schema": {
              "title": "Is Active",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "title": "Name",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_type",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/CustomFieldAppliesToType"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter to fields that apply to this record type (e.g. `customer`, `invoice`)."
            },
            "required": false,
            "description": "Filter to fields that apply to this record type (e.g. `customer`, `invoice`)."
          },
          {
            "in": "query",
            "name": "layer",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Layer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter on header (`transaction`) vs line (`entry`) applicability."
            },
            "required": false,
            "description": "Filter on header (`transaction`) vs line (`entry`) applicability."
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "description": "Include both org-level fields and fields scoped to this company id.",
              "title": "Company Id",
              "type": [
                "integer",
                "null"
              ]
            },
            "required": false,
            "description": "Include both org-level fields and fields scoped to this company id."
          },
          {
            "in": "query",
            "name": "is_required",
            "schema": {
              "description": "Filter on the `is_required` flag of the `applies_to` entry (needs `record_type`).",
              "title": "Is Required",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false,
            "description": "Filter on the `is_required` flag of the `applies_to` entry (needs `record_type`)."
          },
          {
            "in": "query",
            "name": "is_active_record",
            "schema": {
              "description": "Filter on the `is_active` flag of the `applies_to` entry (needs `record_type`).",
              "title": "Is Active Record",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false,
            "description": "Filter on the `is_active` flag of the `applies_to` entry (needs `record_type`)."
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "-updated_at",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicCustomFieldSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of custom field definitions with filtering and ordering options.",
        "tags": [
          "Custom Fields"
        ]
      },
      "post": {
        "operationId": "core_api_public_custom_fields_create_custom_field",
        "summary": "Create custom field",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomFieldSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new custom field definition. Supply `applies_to` to bind the field to record types, and `company_ids` (or `company_id`) to restrict it to specific companies.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `is_active` to false.",
        "tags": [
          "Custom Fields"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomFieldSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new custom field definition."
          },
          "content": "Supply `applies_to` to bind the field to record types, and `company_ids` (or `company_id`) to restrict it to specific companies.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `is_active` to false."
        }
      }
    },
    "/public/v2/custom-fields/{custom_field_id}/": {
      "get": {
        "operationId": "core_api_public_custom_fields_get_custom_field",
        "summary": "Get custom field",
        "parameters": [
          {
            "in": "path",
            "name": "custom_field_id",
            "schema": {
              "title": "Custom Field Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomFieldSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific custom field definition by id.",
        "tags": [
          "Custom Fields"
        ]
      },
      "put": {
        "operationId": "core_api_public_custom_fields_update_custom_field",
        "summary": "Update custom field",
        "parameters": [
          {
            "in": "path",
            "name": "custom_field_id",
            "schema": {
              "title": "Custom Field Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomFieldSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing custom field definition. `applies_to` and `company_ids` are replaced wholesale, so send the full desired list. `field_type` cannot be changed after creation.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `is_active` to false.",
        "tags": [
          "Custom Fields"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomFieldSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing custom field definition."
          },
          "content": "`applies_to` and `company_ids` are replaced wholesale, so send the full desired list. `field_type` cannot be changed after creation.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `is_active` to false."
        }
      },
      "delete": {
        "operationId": "core_api_public_custom_fields_delete_custom_field",
        "summary": "Delete custom field",
        "parameters": [
          {
            "in": "path",
            "name": "custom_field_id",
            "schema": {
              "title": "Custom Field Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Delete a custom field definition. Fails with `422` if any record already has a value stored against this field. Clear those values first, or archive the field via `is_active=false` instead.",
        "tags": [
          "Custom Fields"
        ],
        "x-mint": {
          "metadata": {
            "description": "Delete a custom field definition."
          },
          "content": "Fails with `422` if any record already has a value stored against this field. Clear those values first, or archive the field via `is_active=false` instead."
        }
      }
    },
    "/public/v2/paper-checks/": {
      "get": {
        "operationId": "core_api_public_paper_checks_list_paper_checks",
        "summary": "List paper checks",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "description": "Filter by paper check IDs",
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by paper check IDs"
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "description": "Filter by status: 'not_printed', 'printed', or 'archived'",
              "title": "Record Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by status: 'not_printed', 'printed', or 'archived'"
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "description": "Filter by company IDs",
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by company IDs"
          },
          {
            "in": "query",
            "name": "transaction_type",
            "schema": {
              "description": "Filter by transaction type: 'direct_expense', 'vendor_payment', 'vendor_prepayment', 'customer_refund'",
              "title": "Transaction Type",
              "items": {
                "$ref": "#/components/schemas/PaperCheckSourceRecordType"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by transaction type: 'direct_expense', 'vendor_payment', 'vendor_prepayment', 'customer_refund'"
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "description": "Filter by vendor IDs (for vendor-related checks)",
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by vendor IDs (for vendor-related checks)"
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "description": "Filter by customer IDs (for customer refund checks)",
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by customer IDs (for customer refund checks)"
          },
          {
            "in": "query",
            "name": "account_id",
            "schema": {
              "description": "Filter by bank account IDs",
              "title": "Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by bank account IDs"
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "description": "Filter checks created on or after this date (YYYY-MM-DD)",
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Filter checks created on or after this date (YYYY-MM-DD)"
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "description": "Filter checks created on or before this date (YYYY-MM-DD)",
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Filter checks created on or before this date (YYYY-MM-DD)"
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "-created_at",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicPaperCheckSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "\nRetrieve a paginated list of paper checks with filtering options.\n\nPaper checks represent physical checks that can be printed for vendor payments,\ndirect expenses, vendor prepayments, or customer refunds.\n\n**Common use cases:**\n- List all queued checks ready to print: `?record_status=not_printed`\n- List checks for a specific vendor: `?vendor_id=123`\n- List checks within a date range: `?start_date=2024-01-01&end_date=2024-01-31`\n",
        "tags": [
          "Paper Checks"
        ],
        "x-mint": {
          "metadata": {
            "description": "Retrieve a paginated list of paper checks with filtering options."
          },
          "content": "Paper checks represent physical checks that can be printed for vendor payments,\ndirect expenses, vendor prepayments, or customer refunds.\n\n**Common use cases:**\n- List all queued checks ready to print: `?record_status=not_printed`\n- List checks for a specific vendor: `?vendor_id=123`\n- List checks within a date range: `?start_date=2024-01-01&end_date=2024-01-31`"
        }
      }
    },
    "/public/v2/paper-checks/print-now/": {
      "post": {
        "operationId": "core_api_public_paper_checks_print_now",
        "summary": "Print check immediately",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPaperCheckWithPDFContentSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "\nCreate and immediately print a paper check for a transaction.\n\nThis endpoint creates a paper check record and generates the PDF in a single operation.\nThe check is immediately marked as PRINTED.\n\n**When to use:**\n- When you need to print a single check right away\n- For on-demand check printing workflows\n\n**Alternative:** Use `POST /print-later/` to queue checks for batch printing.\n\n**Supported transaction types:**\n- Direct expenses\n- Vendor payments\n- Vendor prepayments\n- Customer refunds\n\n**Returns:** The created paper check details along with the PDF content encoded in base64.\n\n\n**Side effects**\n- If a check number is assigned, DualEntry also updates `check_number` on the record paid by this paper check.",
        "tags": [
          "Paper Checks"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicPrintNowPayload"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create and immediately print a paper check for a transaction."
          },
          "content": "This endpoint creates a paper check record and generates the PDF in a single operation.\nThe check is immediately marked as PRINTED.\n\n**When to use:**\n- When you need to print a single check right away\n- For on-demand check printing workflows\n\n**Alternative:** Use `POST /print-later/` to queue checks for batch printing.\n\n**Supported transaction types:**\n- Direct expenses\n- Vendor payments\n- Vendor prepayments\n- Customer refunds\n\n**Returns:** The created paper check details along with the PDF content encoded in base64.\n\n\n**Side effects**\n- If a check number is assigned, DualEntry also updates `check_number` on the record paid by this paper check."
        }
      }
    },
    "/public/v2/paper-checks/print-later/": {
      "post": {
        "operationId": "core_api_public_paper_checks_print_later",
        "summary": "Queue checks for later printing",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicPaperCheckSchemaOut"
                  },
                  "title": "Response",
                  "type": "array"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "\nCreate paper checks for transactions that will be printed later in a batch.\n\nThis endpoint creates paper check records with status NOT_PRINTED. These checks\ncan then be printed together using the `PUT /print-batch/` endpoint.\n\n**When to use:**\n- When you want to accumulate checks before printing\n- For batch check printing workflows\n- When check numbers need to be assigned in sequence\n\n**Alternative:** Use `POST /print-now/` to print a single check immediately.\n\n**Workflow:**\n1. Queue checks: `POST /print-later/` with transaction IDs\n2. Review queued checks: `GET /paper-checks/?record_status=not_printed`\n3. Print batch: `PUT /print-batch/` with paper check IDs\n\n**Returns:** List of created paper checks with status 'not_printed'.\n",
        "tags": [
          "Paper Checks"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicPrintLaterPayload"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create paper checks for transactions that will be printed later in a batch."
          },
          "content": "This endpoint creates paper check records with status NOT_PRINTED. These checks\ncan then be printed together using the `PUT /print-batch/` endpoint.\n\n**When to use:**\n- When you want to accumulate checks before printing\n- For batch check printing workflows\n- When check numbers need to be assigned in sequence\n\n**Alternative:** Use `POST /print-now/` to print a single check immediately.\n\n**Workflow:**\n1. Queue checks: `POST /print-later/` with transaction IDs\n2. Review queued checks: `GET /paper-checks/?record_status=not_printed`\n3. Print batch: `PUT /print-batch/` with paper check IDs\n\n**Returns:** List of created paper checks with status 'not_printed'."
        }
      }
    },
    "/public/v2/paper-checks/print-batch/": {
      "put": {
        "operationId": "core_api_public_paper_checks_print_batch",
        "summary": "Batch print paper checks",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPaperCheckBatchPrintResponse"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "\nPrint multiple queued paper checks in a batch.\n\nThis endpoint prints all specified checks, assigns sequential check numbers,\nand returns a merged PDF containing all checks.\n\n**Prerequisites:**\n- All specified checks must have status 'not_printed'\n- Use `POST /print-later/` to queue checks first\n\n**Check number assignment:**\nCheck numbers are assigned sequentially starting from `first_check_number`.\nThe order of `paper_check_ids` in the request determines:\n1. The order of checks in the PDF\n2. The order of check number assignment\n\n**Example:**\nIf `first_check_number=1001` and you print 3 checks, they will be numbered 1001, 1002, 1003.\n\n**Returns:**\n- `pdf_content`: Base64-encoded PDF with all checks\n- `printed_checks`: List showing each check ID and its assigned check number\n- `total_printed`: Count of checks printed\n\n\n**Side effects**\n- If a check number is assigned, DualEntry also updates `check_number` on the record paid by this paper check.",
        "tags": [
          "Paper Checks"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicPrintBatchPayload"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Print multiple queued paper checks in a batch."
          },
          "content": "This endpoint prints all specified checks, assigns sequential check numbers,\nand returns a merged PDF containing all checks.\n\n**Prerequisites:**\n- All specified checks must have status 'not_printed'\n- Use `POST /print-later/` to queue checks first\n\n**Check number assignment:**\nCheck numbers are assigned sequentially starting from `first_check_number`.\nThe order of `paper_check_ids` in the request determines:\n1. The order of checks in the PDF\n2. The order of check number assignment\n\n**Example:**\nIf `first_check_number=1001` and you print 3 checks, they will be numbered 1001, 1002, 1003.\n\n**Returns:**\n- `pdf_content`: Base64-encoded PDF with all checks\n- `printed_checks`: List showing each check ID and its assigned check number\n- `total_printed`: Count of checks printed\n\n\n**Side effects**\n- If a check number is assigned, DualEntry also updates `check_number` on the record paid by this paper check."
        }
      }
    },
    "/public/v2/paper-checks/{paper_check_id}/": {
      "get": {
        "operationId": "core_api_public_paper_checks_get_paper_check",
        "summary": "Get paper check",
        "parameters": [
          {
            "in": "path",
            "name": "paper_check_id",
            "schema": {
              "title": "Paper Check Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPaperCheckSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "\nRetrieve a specific paper check by ID.\n\nReturns the full details of a paper check including the associated transaction\ninformation, payee details, and current status.\n",
        "tags": [
          "Paper Checks"
        ],
        "x-mint": {
          "metadata": {
            "description": "Retrieve a specific paper check by ID."
          },
          "content": "Returns the full details of a paper check including the associated transaction\ninformation, payee details, and current status."
        }
      },
      "delete": {
        "operationId": "core_api_public_paper_checks_delete_paper_check",
        "summary": "Archive paper check",
        "parameters": [
          {
            "in": "path",
            "name": "paper_check_id",
            "schema": {
              "title": "Paper Check Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPaperCheckSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "\nArchive a paper check by setting its status to ARCHIVED.\n\nArchiving a paper check removes it from active workflows without deleting it.\nThis allows you to:\n- Remove a check from the print queue\n- Create a new check for the same transaction\n- Maintain audit history\n\n**Note:** Archived checks can still be retrieved via the list and get endpoints\nby filtering with `record_status=archived`.\n",
        "tags": [
          "Paper Checks"
        ],
        "x-mint": {
          "metadata": {
            "description": "Archive a paper check by setting its status to ARCHIVED."
          },
          "content": "Archiving a paper check removes it from active workflows without deleting it.\nThis allows you to:\n- Remove a check from the print queue\n- Create a new check for the same transaction\n- Maintain audit history\n\n**Note:** Archived checks can still be retrieved via the list and get endpoints\nby filtering with `record_status=archived`."
        }
      }
    },
    "/public/v2/workflows/": {
      "get": {
        "operationId": "core_api_public_workflows_list_workflows",
        "summary": "List workflows",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "type": [
                "integer",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_type",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/PublicRecordType"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_active",
            "schema": {
              "title": "Is Active",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "-priority,-id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicWorkflowListSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of approval workflows with filtering options by company, record type, and active status.",
        "tags": [
          "Approval Policies"
        ]
      }
    },
    "/public/v2/workflows/approvers/": {
      "get": {
        "operationId": "core_api_public_workflows_list_workflow_approvers",
        "summary": "List workflow approvers",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicApproverSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Return a paginated list of active organization users that can be assigned as workflow approvers, including name and email.",
        "tags": [
          "Approval Policies"
        ]
      }
    },
    "/public/v2/workflows/approvers/{approver_id}/": {
      "get": {
        "operationId": "core_api_public_workflows_get_workflow_approver",
        "summary": "Get workflow approver",
        "parameters": [
          {
            "in": "path",
            "name": "approver_id",
            "schema": {
              "title": "Approver Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicApproverSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Resolve one workflow approver id to name and email.",
        "tags": [
          "Approval Policies"
        ]
      }
    },
    "/public/v2/workflows/execution-states/": {
      "get": {
        "operationId": "core_api_public_workflows_list_execution_states",
        "summary": "List execution states",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "workflow_id",
            "schema": {
              "title": "Workflow Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "title": "Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_type",
            "schema": {
              "title": "Record Type",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "initiator_id",
            "schema": {
              "title": "Initiator Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicWorkflowExecutionStateSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of workflow execution states (approval statuses for records).",
        "tags": [
          "Approval Policies"
        ]
      }
    },
    "/public/v2/workflows/execution-states/{state_id}/": {
      "get": {
        "operationId": "core_api_public_workflows_get_execution_state",
        "summary": "Get execution state by ID",
        "parameters": [
          {
            "in": "path",
            "name": "state_id",
            "schema": {
              "title": "State Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicWorkflowExecutionStateSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a single workflow execution state by its ID.",
        "tags": [
          "Approval Policies"
        ]
      }
    },
    "/public/v2/workflows/execution-states/{state_id}/actions/": {
      "get": {
        "operationId": "core_api_public_workflows_get_execution_state_actions",
        "summary": "Get approval actions for execution state",
        "parameters": [
          {
            "in": "path",
            "name": "state_id",
            "schema": {
              "title": "State Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicApprovalActionSchemaOut"
                  },
                  "title": "Response",
                  "type": "array"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve all approval actions (history) for a specific workflow execution state.",
        "tags": [
          "Approval Policies"
        ]
      }
    },
    "/public/v2/workflows/actions/": {
      "get": {
        "operationId": "core_api_public_workflows_list_approval_actions",
        "summary": "List approval actions",
        "parameters": [
          {
            "in": "query",
            "name": "workflow_execution_state_id",
            "schema": {
              "title": "Workflow Execution State Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_type",
            "schema": {
              "title": "Record Type",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_id",
            "schema": {
              "title": "Record Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "action_type",
            "schema": {
              "title": "Action Type",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approver_id",
            "schema": {
              "title": "Approver Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicApprovalActionSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of approval actions (history) with filtering options.",
        "tags": [
          "Approval Policies"
        ]
      }
    },
    "/public/v2/workflows/roles/": {
      "get": {
        "operationId": "core_api_public_workflows_get_workflow_roles",
        "summary": "Get roles for workflow conditions",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicRoleMetadataSchemaOut"
                  },
                  "title": "Response",
                  "type": "array"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Returns all active roles that can be used in workflow conditions.",
        "tags": [
          "Approval Policies"
        ]
      }
    },
    "/public/v2/workflows/{workflow_id}/": {
      "get": {
        "operationId": "core_api_public_workflows_get_workflow",
        "summary": "Get workflow by ID",
        "parameters": [
          {
            "in": "path",
            "name": "workflow_id",
            "schema": {
              "title": "Workflow Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicWorkflowSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a single approval workflow by its ID, including all steps, conditions, and approvers.",
        "tags": [
          "Approval Policies"
        ]
      }
    },
    "/public/v2/workflows/{workflow_id}/versions/": {
      "get": {
        "operationId": "core_api_public_workflows_get_workflow_versions",
        "summary": "Get workflow version history",
        "parameters": [
          {
            "in": "path",
            "name": "workflow_id",
            "schema": {
              "title": "Workflow Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "include_snapshot",
            "schema": {
              "default": false,
              "title": "Include Snapshot",
              "type": "boolean"
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicWorkflowVersionSchemaOut"
                  },
                  "title": "Response",
                  "type": "array"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve version history for a workflow including changes, timestamps, and optionally full snapshots.",
        "tags": [
          "Approval Policies"
        ]
      }
    },
    "/public/v2/inbox/": {
      "get": {
        "operationId": "core_api_public_inbox_inbox_summary",
        "summary": "Get inbox summary",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicInboxSummarySchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Get counts of pending approvals in the inbox for the entire organization.",
        "tags": [
          "Inbox"
        ]
      }
    },
    "/public/v2/inbox/transactions/": {
      "get": {
        "operationId": "core_api_public_inbox_transactions_inbox",
        "summary": "List transactions inbox",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_type",
            "schema": {
              "title": "Transaction Type",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_id",
            "schema": {
              "title": "Record Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "transaction_id",
            "schema": {
              "title": "Transaction Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "min_amount",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Amount"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "max_amount",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Max Amount"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicTransactionInboxSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve transactions pending approval for the organization, including the same record types as the internal inbox.",
        "tags": [
          "Inbox"
        ]
      }
    },
    "/public/v2/inbox/records/": {
      "get": {
        "operationId": "core_api_public_inbox_records_inbox",
        "summary": "List records inbox",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_type",
            "schema": {
              "title": "Record Type",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_id",
            "schema": {
              "title": "Record Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicRecordInboxSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve all non-monetary records (customers, vendors) with workflow approval status for the organization.",
        "tags": [
          "Inbox"
        ]
      }
    },
    "/public/v2/inbox/transactions/{record_id}/": {
      "get": {
        "operationId": "core_api_public_inbox_transaction_inbox_detail",
        "summary": "Get transaction inbox details",
        "parameters": [
          {
            "in": "path",
            "name": "record_id",
            "schema": {
              "title": "Record Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "transaction_type",
            "schema": {
              "title": "Transaction Type",
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/PublicTransactionInboxSchemaOut"
                    },
                    {
                      "additionalProperties": true,
                      "type": "object"
                    }
                  ],
                  "title": "Response"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve approval details for a specific transaction. Returns empty dict if not in inbox.",
        "tags": [
          "Inbox"
        ]
      }
    },
    "/public/v2/inbox/records/{record_id}/": {
      "get": {
        "operationId": "core_api_public_inbox_record_inbox_detail",
        "summary": "Get record inbox details",
        "parameters": [
          {
            "in": "path",
            "name": "record_id",
            "schema": {
              "title": "Record Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "record_type",
            "schema": {
              "title": "Record Type",
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/PublicRecordInboxSchemaOut"
                    },
                    {
                      "additionalProperties": true,
                      "type": "object"
                    }
                  ],
                  "title": "Response"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve approval details for a specific non-monetary record. Returns empty dict if not in inbox.",
        "tags": [
          "Inbox"
        ]
      }
    },
    "/public/v2/fixed-assets/": {
      "get": {
        "operationId": "core_api_public_v2_fixed_asset_list_fixed_assets",
        "summary": "List fixed assets",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "title": "Status",
              "items": {
                "$ref": "#/components/schemas/FixedAssetStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "purchase_date_gte",
            "schema": {
              "title": "Purchase Date Gte",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "purchase_date_lte",
            "schema": {
              "title": "Purchase Date Lte",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "currency_iso_4217_code",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SystemCurrencies"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "fixed_asset_class_id",
            "schema": {
              "title": "Fixed Asset Class Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "asset_account_id",
            "schema": {
              "title": "Asset Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "expense_account_id",
            "schema": {
              "title": "Expense Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "accumulation_account_id",
            "schema": {
              "title": "Accumulation Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "purchase_cost_min",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Purchase Cost Min"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "purchase_cost_max",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Purchase Cost Max"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedV2FixedAssetSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of fixed assets with multi-book depreciation schedules.",
        "tags": [
          "Fixed Assets"
        ]
      },
      "post": {
        "operationId": "core_api_public_v2_fixed_asset_create_fixed_asset",
        "summary": "Create fixed asset",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/V2FixedAssetSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new fixed asset with multi-book depreciation schedules.\n\n**Side effects**\n- If the asset is posted, DualEntry writes depreciation to the general ledger.\n- If an approval workflow holds the asset, DualEntry keeps the depreciation entries in draft until the asset is approved.",
        "tags": [
          "Fixed Assets"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/V2FixedAssetSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new fixed asset with multi-book depreciation schedules."
          },
          "content": "**Side effects**\n- If the asset is posted, DualEntry writes depreciation to the general ledger.\n- If an approval workflow holds the asset, DualEntry keeps the depreciation entries in draft until the asset is approved."
        }
      }
    },
    "/public/v2/fixed-assets/{fixed_asset_number}/": {
      "get": {
        "operationId": "core_api_public_v2_fixed_asset_get_fixed_asset",
        "summary": "Get fixed asset",
        "parameters": [
          {
            "in": "path",
            "name": "fixed_asset_number",
            "schema": {
              "title": "Fixed Asset Number",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/V2FixedAssetSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific fixed asset by number with multi-book depreciation schedules.",
        "tags": [
          "Fixed Assets"
        ]
      },
      "put": {
        "operationId": "core_api_public_v2_fixed_asset_update_fixed_asset",
        "summary": "Update fixed asset",
        "parameters": [
          {
            "in": "path",
            "name": "fixed_asset_number",
            "schema": {
              "title": "Fixed Asset Number",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/V2FixedAssetSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Fully update a fixed asset with multi-book depreciation schedules.\n\n**Side effects**\n- If the asset is posted, DualEntry writes depreciation to the general ledger.\n- If an approval workflow holds the asset, DualEntry keeps the depreciation entries in draft until the asset is approved.",
        "tags": [
          "Fixed Assets"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/V2FixedAssetSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Fully update a fixed asset with multi-book depreciation schedules."
          },
          "content": "**Side effects**\n- If the asset is posted, DualEntry writes depreciation to the general ledger.\n- If an approval workflow holds the asset, DualEntry keeps the depreciation entries in draft until the asset is approved."
        }
      },
      "patch": {
        "operationId": "core_api_public_v2_fixed_asset_patch_fixed_asset",
        "summary": "Partial update fixed asset",
        "parameters": [
          {
            "in": "path",
            "name": "fixed_asset_number",
            "schema": {
              "title": "Fixed Asset Number",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/V2FixedAssetSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Partially update a fixed asset. If `depreciation_schedules` is sent, it replaces all existing schedules.\n\n**Side effects**\n- If the asset is posted, DualEntry writes depreciation to the general ledger.\n- If an approval workflow holds the asset, DualEntry keeps the depreciation entries in draft until the asset is approved.",
        "tags": [
          "Fixed Assets"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/V2FixedAssetSchemaPatchIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Partially update a fixed asset."
          },
          "content": "If `depreciation_schedules` is sent, it replaces all existing schedules.\n\n**Side effects**\n- If the asset is posted, DualEntry writes depreciation to the general ledger.\n- If an approval workflow holds the asset, DualEntry keeps the depreciation entries in draft until the asset is approved."
        }
      },
      "delete": {
        "operationId": "core_api_public_v2_fixed_asset_delete_fixed_asset",
        "summary": "Archive fixed asset",
        "parameters": [
          {
            "in": "path",
            "name": "fixed_asset_number",
            "schema": {
              "title": "Fixed Asset Number",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Archive a fixed asset (soft delete). This also archives any posted depreciation transactions.",
        "tags": [
          "Fixed Assets"
        ]
      }
    },
    "/public/v2/fixed-assets/{fixed_asset_number}/schedules/{depreciation_book_id}/schedule/": {
      "get": {
        "operationId": "core_api_public_v2_fixed_asset_get_fixed_asset_book_schedule",
        "summary": "Get depreciation schedule by book",
        "parameters": [
          {
            "in": "path",
            "name": "fixed_asset_number",
            "schema": {
              "title": "Fixed Asset Number",
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "depreciation_book_id",
            "schema": {
              "title": "Depreciation Book Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "from_date",
            "schema": {
              "title": "From Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "to_date",
            "schema": {
              "title": "To Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicDepreciationScheduleItemOut"
                  },
                  "title": "Response",
                  "type": "array"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Chronological depreciation, disposal, and revaluation events for one fixed asset and one depreciation book, optionally narrowed by `from_date` and `to_date`.",
        "tags": [
          "Fixed Assets"
        ],
        "x-mint": {
          "metadata": {
            "description": "Chronological depreciation, disposal, and revaluation events for one fixed asset and one depreciation book, optionally narrowed by `from_date` and\u2026"
          },
          "content": "Chronological depreciation, disposal, and revaluation events for one fixed asset and one depreciation book, optionally narrowed by `from_date` and `to_date`."
        }
      }
    },
    "/public/v2/fixed-asset-classes/": {
      "get": {
        "operationId": "core_api_public_fixed_asset_classes_list_fixed_asset_classes",
        "summary": "List fixed asset classes",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "default": "active",
              "description": "Tab: active or archived",
              "title": "Status",
              "enum": [
                "active",
                "archived"
              ],
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Tab: active or archived"
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "description": "Filter by name (DB icontains)",
              "title": "Name",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by name (DB icontains)"
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "description": "Filter by company",
              "title": "Company Id",
              "type": [
                "integer",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by company"
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedFixedAssetClassSchemaOut"
                }
              }
            }
          }
        },
        "description": "List fixed asset classes so a caller can set `fixed_asset_class_id` on an asset.",
        "tags": [
          "Fixed Asset Classes"
        ]
      }
    },
    "/public/v2/fixed-asset-classes/{fixed_asset_class_id}/": {
      "get": {
        "operationId": "core_api_public_fixed_asset_classes_get_fixed_asset_class",
        "summary": "Get fixed asset class",
        "parameters": [
          {
            "in": "path",
            "name": "fixed_asset_class_id",
            "schema": {
              "title": "Fixed Asset Class Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FixedAssetClassSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "tags": [
          "Fixed Asset Classes"
        ],
        "x-mint": {
          "metadata": {
            "description": "API reference for Get fixed asset class in the DualEntry API"
          }
        }
      }
    },
    "/public/v2/webhooks/": {
      "post": {
        "operationId": "core_outbound_webhooks_api_create_webhook",
        "summary": "Create webhook",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookCreateSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Register a webhook endpoint for events. The signing secret is returned once and never shown again.",
        "tags": [
          "Webhooks"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookSchemaCreateIn"
              }
            }
          },
          "required": true
        }
      },
      "get": {
        "operationId": "core_outbound_webhooks_api_list_webhooks",
        "summary": "List webhooks",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_active",
            "schema": {
              "title": "Is Active",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "-created_at",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedWebhookSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of registered webhooks.",
        "tags": [
          "Webhooks"
        ]
      }
    },
    "/public/v2/webhooks/topics/": {
      "get": {
        "operationId": "core_outbound_webhooks_api_list_webhook_topics",
        "summary": "List webhook topics",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/WebhookTopicSchemaOut"
                  },
                  "title": "Response",
                  "type": "array"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "List all available topics a webhook can subscribe to.",
        "tags": [
          "Webhooks"
        ]
      }
    },
    "/public/v2/webhooks/{webhook_uuid}/": {
      "get": {
        "operationId": "core_outbound_webhooks_api_get_webhook",
        "summary": "Get webhook",
        "parameters": [
          {
            "in": "path",
            "name": "webhook_uuid",
            "schema": {
              "title": "Webhook Uuid",
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific webhook by UUID.",
        "tags": [
          "Webhooks"
        ]
      },
      "put": {
        "operationId": "core_outbound_webhooks_api_update_webhook",
        "summary": "Update webhook",
        "parameters": [
          {
            "in": "path",
            "name": "webhook_uuid",
            "schema": {
              "title": "Webhook Uuid",
              "type": "string"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update a webhook: change the URL, replace topics, or toggle active state.\n\n**Side effects**\n- If you set `is_active` to `true`, DualEntry also resets the failure and disabled state of the webhook.",
        "tags": [
          "Webhooks"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update a webhook: change the URL, replace topics, or toggle active state."
          },
          "content": "**Side effects**\n- If you set `is_active` to `true`, DualEntry also resets the failure and disabled state of the webhook."
        }
      },
      "patch": {
        "operationId": "core_outbound_webhooks_api_patch_webhook",
        "summary": "Patch webhook",
        "parameters": [
          {
            "in": "path",
            "name": "webhook_uuid",
            "schema": {
              "title": "Webhook Uuid",
              "type": "string"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Partially update a webhook (URL, topics, active state).\n\n**Side effects**\n- If you set `is_active` to `true`, DualEntry also resets the failure and disabled state of the webhook.",
        "tags": [
          "Webhooks"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Partially update a webhook (URL, topics, active state)."
          },
          "content": "**Side effects**\n- If you set `is_active` to `true`, DualEntry also resets the failure and disabled state of the webhook."
        }
      },
      "delete": {
        "operationId": "core_outbound_webhooks_api_delete_webhook",
        "summary": "Delete webhook",
        "parameters": [
          {
            "in": "path",
            "name": "webhook_uuid",
            "schema": {
              "title": "Webhook Uuid",
              "type": "string"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Delete a webhook by UUID. The delete also removes this webhook's deliveries, including pending ones.",
        "tags": [
          "Webhooks"
        ]
      }
    },
    "/public/v2/webhooks/{webhook_uuid}/deliveries/": {
      "get": {
        "operationId": "core_outbound_webhooks_api_list_webhook_deliveries",
        "summary": "List webhook deliveries",
        "parameters": [
          {
            "in": "path",
            "name": "webhook_uuid",
            "schema": {
              "title": "Webhook Uuid",
              "type": "string"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "-created_at",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedWebhookDeliverySchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "List delivery attempts (events) for a specific webhook.",
        "tags": [
          "Webhooks"
        ]
      }
    },
    "/public/v2/export-jobs/": {
      "post": {
        "operationId": "core_api_public_exports_request_export",
        "summary": "Request a data export",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicExportJobRequestSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Requests a data refresh. Execution is orchestrated by DualEntry and starts when capacity allows \u2014 typically within minutes. There is no SLA on start time. Exports also run automatically on a schedule; this endpoint forces an off-cycle refresh. Poll `GET /export-jobs/{id}/` for completion.\n\nAlways returns `202 Accepted`. Calling it while an export is already running is safe: the in-flight job is returned with `deduplicated: true` and no second export is started.",
        "tags": [
          "Data Exports"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PublicExportJobSchemaIn"
                  }
                ]
              }
            }
          },
          "required": false
        },
        "x-mint": {
          "metadata": {
            "description": "Requests a data refresh."
          },
          "content": "Execution is orchestrated by DualEntry and starts when capacity allows \u2014 typically within minutes. There is no SLA on start time. Exports also run automatically on a schedule; this endpoint forces an off-cycle refresh. Poll `GET /export-jobs/{id}/` for completion.\n\nAlways returns `202 Accepted`. Calling it while an export is already running is safe: the in-flight job is returned with `deduplicated: true` and no second export is started."
        }
      },
      "get": {
        "operationId": "core_api_public_exports_list_export_jobs",
        "summary": "List export jobs",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "schema": {
              "description": "Filter by public status.",
              "title": "Status",
              "items": {
                "$ref": "#/components/schemas/PublicExportJobStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by public status."
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "-created_at",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicExportJobSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of export jobs for the organization, most recent first.",
        "tags": [
          "Data Exports"
        ]
      }
    },
    "/public/v2/export-jobs/{job_id}/": {
      "get": {
        "operationId": "core_api_public_exports_get_export_job",
        "summary": "Get export job",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "schema": {
              "title": "Job Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicExportJobSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve the status of a single export job. Poll this after requesting an export.",
        "tags": [
          "Data Exports"
        ]
      }
    },
    "/public/v2/exchange_rates/": {
      "get": {
        "operationId": "core_api_public_exchange_rates_list_exchange_rates",
        "summary": "List exchange rates",
        "parameters": [
          {
            "in": "query",
            "name": "effective_date",
            "schema": {
              "description": "Single date to fetch rates for.",
              "title": "Effective Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Single date to fetch rates for."
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "description": "Inclusive range start. Requires `end_date`.",
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Inclusive range start. Requires `end_date`."
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "description": "Inclusive range end. Requires `start_date`.",
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Inclusive range end. Requires `start_date`."
          },
          {
            "in": "query",
            "name": "base_currency",
            "schema": {
              "enum": [
                "AED",
                "AFN",
                "ALL",
                "AMD",
                "ANG",
                "AOA",
                "ARS",
                "AUD",
                "AWG",
                "AZN",
                "BAM",
                "BBD",
                "BDT",
                "BGN",
                "BHD",
                "BIF",
                "BMD",
                "BND",
                "BOB",
                "BRL",
                "BSD",
                "BTN",
                "BWP",
                "BYN",
                "BZD",
                "CAD",
                "CDF",
                "CHF",
                "CLF",
                "CLP",
                "CNY",
                "COP",
                "CRC",
                "CUP",
                "CVE",
                "CZK",
                "DJF",
                "DKK",
                "DOP",
                "DZD",
                "EGP",
                "ERN",
                "ETB",
                "EUR",
                "FJD",
                "FKP",
                "GBP",
                "GEL",
                "GHS",
                "GIP",
                "GMD",
                "GNF",
                "GTQ",
                "GYD",
                "HKD",
                "HNL",
                "HTG",
                "HUF",
                "IDR",
                "ILS",
                "INR",
                "IQD",
                "IRR",
                "ISK",
                "JMD",
                "JOD",
                "JPY",
                "KES",
                "KGS",
                "KHR",
                "KMF",
                "KPW",
                "KRW",
                "KWD",
                "KYD",
                "KZT",
                "LAK",
                "LBP",
                "LKR",
                "LRD",
                "LSL",
                "LYD",
                "MAD",
                "MDL",
                "MGA",
                "MKD",
                "MMK",
                "MNT",
                "MOP",
                "MRU",
                "MUR",
                "MVR",
                "MWK",
                "MXN",
                "MYR",
                "MZN",
                "NAD",
                "NGN",
                "NIO",
                "NOK",
                "NPR",
                "NZD",
                "OMR",
                "PAB",
                "PEN",
                "PGK",
                "PHP",
                "PKR",
                "PLN",
                "PYG",
                "QAR",
                "RON",
                "RSD",
                "RUB",
                "RWF",
                "SAR",
                "SBD",
                "SCR",
                "SDG",
                "SEK",
                "SGD",
                "SHP",
                "SLL",
                "SOS",
                "SRD",
                "STN",
                "SVC",
                "SYP",
                "SZL",
                "THB",
                "TJS",
                "TMT",
                "TND",
                "TOP",
                "TRY",
                "TTD",
                "TWD",
                "TZS",
                "UAH",
                "UGX",
                "USD",
                "UYU",
                "UZS",
                "VES",
                "VND",
                "VUV",
                "WST",
                "XAF",
                "XAG",
                "XAU",
                "XCD",
                "XDR",
                "XOF",
                "XPD",
                "XPF",
                "XPT",
                "YER",
                "ZAR",
                "ZMW",
                "ZWL"
              ],
              "title": "SystemCurrencies",
              "type": "string"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "transaction_currency",
            "schema": {
              "description": "Quote currencies to include.",
              "items": {
                "enum": [
                  "AED",
                  "AFN",
                  "ALL",
                  "AMD",
                  "ANG",
                  "AOA",
                  "ARS",
                  "AUD",
                  "AWG",
                  "AZN",
                  "BAM",
                  "BBD",
                  "BDT",
                  "BGN",
                  "BHD",
                  "BIF",
                  "BMD",
                  "BND",
                  "BOB",
                  "BRL",
                  "BSD",
                  "BTN",
                  "BWP",
                  "BYN",
                  "BZD",
                  "CAD",
                  "CDF",
                  "CHF",
                  "CLF",
                  "CLP",
                  "CNY",
                  "COP",
                  "CRC",
                  "CUP",
                  "CVE",
                  "CZK",
                  "DJF",
                  "DKK",
                  "DOP",
                  "DZD",
                  "EGP",
                  "ERN",
                  "ETB",
                  "EUR",
                  "FJD",
                  "FKP",
                  "GBP",
                  "GEL",
                  "GHS",
                  "GIP",
                  "GMD",
                  "GNF",
                  "GTQ",
                  "GYD",
                  "HKD",
                  "HNL",
                  "HTG",
                  "HUF",
                  "IDR",
                  "ILS",
                  "INR",
                  "IQD",
                  "IRR",
                  "ISK",
                  "JMD",
                  "JOD",
                  "JPY",
                  "KES",
                  "KGS",
                  "KHR",
                  "KMF",
                  "KPW",
                  "KRW",
                  "KWD",
                  "KYD",
                  "KZT",
                  "LAK",
                  "LBP",
                  "LKR",
                  "LRD",
                  "LSL",
                  "LYD",
                  "MAD",
                  "MDL",
                  "MGA",
                  "MKD",
                  "MMK",
                  "MNT",
                  "MOP",
                  "MRU",
                  "MUR",
                  "MVR",
                  "MWK",
                  "MXN",
                  "MYR",
                  "MZN",
                  "NAD",
                  "NGN",
                  "NIO",
                  "NOK",
                  "NPR",
                  "NZD",
                  "OMR",
                  "PAB",
                  "PEN",
                  "PGK",
                  "PHP",
                  "PKR",
                  "PLN",
                  "PYG",
                  "QAR",
                  "RON",
                  "RSD",
                  "RUB",
                  "RWF",
                  "SAR",
                  "SBD",
                  "SCR",
                  "SDG",
                  "SEK",
                  "SGD",
                  "SHP",
                  "SLL",
                  "SOS",
                  "SRD",
                  "STN",
                  "SVC",
                  "SYP",
                  "SZL",
                  "THB",
                  "TJS",
                  "TMT",
                  "TND",
                  "TOP",
                  "TRY",
                  "TTD",
                  "TWD",
                  "TZS",
                  "UAH",
                  "UGX",
                  "USD",
                  "UYU",
                  "UZS",
                  "VES",
                  "VND",
                  "VUV",
                  "WST",
                  "XAF",
                  "XAG",
                  "XAU",
                  "XCD",
                  "XDR",
                  "XOF",
                  "XPD",
                  "XPF",
                  "XPT",
                  "YER",
                  "ZAR",
                  "ZMW",
                  "ZWL"
                ],
                "title": "SystemCurrencies",
                "type": "string"
              },
              "title": "Transaction Currency",
              "type": "array"
            },
            "required": true,
            "description": "Quote currencies to include."
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedExchangeRateSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve DualEntry exchange rates for a base currency and one or more quote currencies.",
        "tags": [
          "Exchange Rates"
        ]
      }
    },
    "/public/v2/depreciation-books/": {
      "get": {
        "operationId": "core_api_public_v2_depreciation_books_list_depreciation_books",
        "summary": "List depreciation books",
        "parameters": [
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedDepreciationBookSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of depreciation books available for the organization.\n\nEach organization has at least one book: **BOOK** (the posting book that posts to GL).\nAdditional books like FEDERAL, AMT, or STATE_* may be configured for tax compliance.\n\nUse the `code` field when creating or updating fixed assets with multi-book depreciation schedules.",
        "tags": [
          "Depreciation Books"
        ],
        "x-mint": {
          "metadata": {
            "description": "Retrieve a paginated list of depreciation books available for the organization."
          },
          "content": "Each organization has at least one book: **BOOK** (the posting book that posts to GL).\nAdditional books like FEDERAL, AMT, or STATE_* may be configured for tax compliance.\n\nUse the `code` field when creating or updating fixed assets with multi-book depreciation schedules."
        }
      }
    },
    "/public/v2/depreciation-books/{book_code}/": {
      "get": {
        "operationId": "core_api_public_v2_depreciation_books_get_depreciation_book",
        "summary": "Get depreciation book by code",
        "parameters": [
          {
            "in": "path",
            "name": "book_code",
            "schema": {
              "title": "Book Code",
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DepreciationBookSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific depreciation book by its code (e.g., \"BOOK\", \"FEDERAL\", \"AMT\").\n\nThe `is_posting` field indicates whether this book posts to the General Ledger.\nOnly the BOOK book (code=\"BOOK\") is a posting book.",
        "tags": [
          "Depreciation Books"
        ],
        "x-mint": {
          "metadata": {
            "description": "Retrieve a specific depreciation book by its code (e.g., \"BOOK\", \"FEDERAL\", \"AMT\")."
          },
          "content": "The `is_posting` field indicates whether this book posts to the General Ledger.\nOnly the BOOK book (code=\"BOOK\") is a posting book."
        }
      }
    },
    "/public/v2/period-locks/": {
      "get": {
        "operationId": "core_api_public_v2_period_locks_list_period_locks",
        "summary": "List period locks",
        "parameters": [
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "type": [
                "integer",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicPeriodLockListSchemaOut"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Each item is a closure that covers at least one day of the window. An open stretch is absent.",
        "tags": [
          "Period Locks"
        ]
      }
    },
    "/public/v2/intercompany-journal-entries/": {
      "get": {
        "operationId": "list_intercompany_journal_entries",
        "summary": "List intercompany journal entries",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_gte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Gte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "amount_lte",
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Amount Lte"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicIJESchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of intercompany journal entries for the organization. Use the `company_id` filter to find IJEs that involve specific companies.",
        "tags": [
          "Intercompany Journal Entries"
        ]
      },
      "post": {
        "operationId": "create_intercompany_journal_entry",
        "summary": "Create intercompany journal entry",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicIJESchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new intercompany journal entry. Lines must span at least two distinct companies and total debits must equal total credits.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If you send a line with both a `debit` and a `credit`, DualEntry stores the difference on the larger side. For example, a line with a `debit` of `5.00` and a `credit` of `2.00` becomes a `debit` of `3.00`. DualEntry stores a negative `debit` as a `credit`, and a negative `credit` as a `debit`.",
        "tags": [
          "Intercompany Journal Entries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicIJESchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new intercompany journal entry."
          },
          "content": "Lines must span at least two distinct companies and total debits must equal total credits.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If you send a line with both a `debit` and a `credit`, DualEntry stores the difference on the larger side. For example, a line with a `debit` of `5.00` and a `credit` of `2.00` becomes a `debit` of `3.00`. DualEntry stores a negative `debit` as a `credit`, and a negative `credit` as a `debit`."
        }
      }
    },
    "/public/v2/intercompany-journal-entries/{record_number}/": {
      "get": {
        "operationId": "get_intercompany_journal_entry",
        "summary": "Get intercompany journal entry",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "title": "Record Number",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicIJESchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a single intercompany journal entry by its record number.",
        "tags": [
          "Intercompany Journal Entries"
        ]
      },
      "put": {
        "operationId": "update_intercompany_journal_entry",
        "summary": "Update intercompany journal entry",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "title": "Record Number",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicIJESchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Updates intercompany journal entries.\n\nEntries in `draft` or `posted` status can be updated.\n\nLines must span at least two companies, and debits must equal credits.\n\nExisting lines and attachments that are not present in the update payload are removed from the entry. Lines are matched by `id`.\n\nThis endpoint fails with a `422` response status code when:\n- The saved `date` or the provided `date` are in a locked period\n- The entry is reconciled\n- A customer payment or vendor payment applies to a line\n- Your organization makes posted records immutable\n- The edit policy that applies to intercompany journal entries is `immutable`.\n\nIf blocked-record edits are allowed, administrators and allowed roles may change `memo` and `reference_number` on restricted entries only.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- Changing `date`, `transaction_date`, or a company's total debits unmatches its bank match group. Removing a line, including by omitting `id`, unmatches that line's group.\n- DualEntry validates elimination-company lines in your payload, then drops them and rebuilds them from other lines where `eliminate` is `true` (the default).\n- If you send a line with both a `debit` and a `credit`, DualEntry stores the difference on the larger side. For example, a line with a `debit` of `5.00` and a `credit` of `2.00` becomes a `debit` of `3.00`. DualEntry stores a negative `debit` as a `credit`, and a negative `credit` as a `debit`.",
        "tags": [
          "Intercompany Journal Entries"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicIJESchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Updates intercompany journal entries."
          },
          "content": "Entries in `draft` or `posted` status can be updated.\n\nLines must span at least two companies, and debits must equal credits.\n\nExisting lines and attachments that are not present in the update payload are removed from the entry. Lines are matched by `id`.\n\nThis endpoint fails with a `422` response status code when:\n- The saved `date` or the provided `date` are in a locked period\n- The entry is reconciled\n- A customer payment or vendor payment applies to a line\n- Your organization makes posted records immutable\n- The edit policy that applies to intercompany journal entries is `immutable`.\n\nIf blocked-record edits are allowed, administrators and allowed roles may change `memo` and `reference_number` on restricted entries only.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n- If this record already has an active bank match, and an approval workflow holds the record, DualEntry returns those matches to `draft`.\n- Changing `date`, `transaction_date`, or a company's total debits unmatches its bank match group. Removing a line, including by omitting `id`, unmatches that line's group.\n- DualEntry validates elimination-company lines in your payload, then drops them and rebuilds them from other lines where `eliminate` is `true` (the default).\n- If you send a line with both a `debit` and a `credit`, DualEntry stores the difference on the larger side. For example, a line with a `debit` of `5.00` and a `credit` of `2.00` becomes a `debit` of `3.00`. DualEntry stores a negative `debit` as a `credit`, and a negative `credit` as a `debit`."
        }
      }
    },
    "/public/v2/vat-rates/": {
      "get": {
        "operationId": "core_api_public_v2_vat_rates_list_vat_rates",
        "summary": "List VAT rates",
        "parameters": [
          {
            "in": "query",
            "name": "country_code",
            "schema": {
              "title": "Country Code",
              "items": {
                "$ref": "#/components/schemas/VatCountries"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "rate_type",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/VatRateType"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "tax_type",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/VatTaxType"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_active",
            "schema": {
              "title": "Is Active",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicVatRateSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of VAT rates available for the organization.\n\nUse the `id` field as `vat_rate_id` when creating or updating transaction line items\n(invoices, bills, journal entries, etc.) with VAT tax data.\n\nFilter by `country_code`, `rate_type`, `tax_type`, or `is_active` to narrow results.",
        "tags": [
          "VAT Rates"
        ],
        "x-mint": {
          "metadata": {
            "description": "Retrieve a paginated list of VAT rates available for the organization."
          },
          "content": "Use the `id` field as `vat_rate_id` when creating or updating transaction line items\n(invoices, bills, journal entries, etc.) with VAT tax data.\n\nFilter by `country_code`, `rate_type`, `tax_type`, or `is_active` to narrow results."
        }
      }
    },
    "/public/v2/vat-rates/{vat_rate_id}/": {
      "get": {
        "operationId": "core_api_public_v2_vat_rates_get_vat_rate",
        "summary": "Get VAT rate by ID",
        "parameters": [
          {
            "in": "path",
            "name": "vat_rate_id",
            "schema": {
              "title": "Vat Rate Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVatRateSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific VAT rate by its ID.\n\nReturns the full VAT rate details including country, rate percentage, type, and validity dates.",
        "tags": [
          "VAT Rates"
        ]
      }
    },
    "/public/v2/gst-tax-rates/": {
      "get": {
        "operationId": "core_api_public_v2_gst_tax_rates_list_gst_tax_rates",
        "summary": "List GST tax rates",
        "parameters": [
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "country_code",
            "schema": {
              "title": "Country Code",
              "items": {
                "$ref": "#/components/schemas/GstCountries"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "tax_treatment",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/GstTreatmentType"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_active",
            "schema": {
              "title": "Is Active",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicGstTaxRateSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of GST tax rates available for the organization.\n\nUse the `id` field as `gst_tax_rate_id` when creating or updating transaction line items\n(invoices, bills, journal entries, etc.) with GST tax data.\n\nIncludes component breakdown (e.g., CGST + SGST for India intra-state, GST + PST for\nCanadian provinces) when applicable.\n\nFilter by `country_code`, `tax_treatment`, or `is_active` to narrow results.",
        "tags": [
          "GST Tax Rates"
        ],
        "x-mint": {
          "metadata": {
            "description": "Retrieve a paginated list of GST tax rates available for the organization."
          },
          "content": "Use the `id` field as `gst_tax_rate_id` when creating or updating transaction line items\n(invoices, bills, journal entries, etc.) with GST tax data.\n\nIncludes component breakdown (e.g., CGST + SGST for India intra-state, GST + PST for\nCanadian provinces) when applicable.\n\nFilter by `country_code`, `tax_treatment`, or `is_active` to narrow results."
        }
      }
    },
    "/public/v2/gst-tax-rates/{gst_tax_rate_id}/": {
      "get": {
        "operationId": "core_api_public_v2_gst_tax_rates_get_gst_tax_rate",
        "summary": "Get GST tax rate by ID",
        "parameters": [
          {
            "in": "path",
            "name": "gst_tax_rate_id",
            "schema": {
              "title": "Gst Tax Rate Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicGstTaxRateSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific GST tax rate by its ID.\n\nReturns the full GST tax rate details including country, treatment type, rate percentage,\nvalidity dates, and component breakdown.",
        "tags": [
          "GST Tax Rates"
        ],
        "x-mint": {
          "metadata": {
            "description": "Retrieve a specific GST tax rate by its ID."
          },
          "content": "Returns the full GST tax rate details including country, treatment type, rate percentage,\nvalidity dates, and component breakdown."
        }
      }
    },
    "/public/v2/product-tax-codes/": {
      "get": {
        "operationId": "core_api_public_v2_product_tax_codes_list_product_tax_codes",
        "summary": "List product tax codes",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "description",
            "schema": {
              "title": "Description",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "source",
            "schema": {
              "title": "Source",
              "items": {
                "$ref": "#/components/schemas/Sources"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_active",
            "schema": {
              "title": "Is Active",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_global",
            "schema": {
              "title": "Is Global",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicProductTaxCodeSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve product tax codes available to the organization, including global tax codes.",
        "tags": [
          "Product Tax Codes"
        ]
      },
      "post": {
        "operationId": "core_api_public_v2_product_tax_codes_create_product_tax_code",
        "summary": "Create product tax code",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicProductTaxCodeSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "424": {
            "description": "Failed Dependency",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create an organization-scoped product tax code. Global product tax codes are system managed.\n\n**Additional validations**\n- Fails with `400` if the product tax code has the `NUMERAL` source and Numeral has no product category with that `code`. Fails with `424` if Numeral is not connected or does not answer, because DualEntry cannot check the `code`.\n- Fails with `400` if the product tax code has the `KINTSUGI` source and Kintsugi has no product category with that `code`. A Kintsugi `code` has the form `<category> / <subcategory>`, for example `Digital / B2C SaaS`. Fails with `424` if Kintsugi is not connected or does not answer, because DualEntry cannot check the `code`.\n- Fails with `400` if the product tax code has the `ANROK` source and not every connected Anrok account has a product tax category with that `code`. Fails with `424` if Anrok is not connected or does not answer, because DualEntry cannot check the `code`.",
        "tags": [
          "Product Tax Codes"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicProductTaxCodeSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create an organization-scoped product tax code."
          },
          "content": "Global product tax codes are system managed.\n\n**Additional validations**\n- Fails with `400` if the product tax code has the `NUMERAL` source and Numeral has no product category with that `code`. Fails with `424` if Numeral is not connected or does not answer, because DualEntry cannot check the `code`.\n- Fails with `400` if the product tax code has the `KINTSUGI` source and Kintsugi has no product category with that `code`. A Kintsugi `code` has the form `<category> / <subcategory>`, for example `Digital / B2C SaaS`. Fails with `424` if Kintsugi is not connected or does not answer, because DualEntry cannot check the `code`.\n- Fails with `400` if the product tax code has the `ANROK` source and not every connected Anrok account has a product tax category with that `code`. Fails with `424` if Anrok is not connected or does not answer, because DualEntry cannot check the `code`."
        }
      }
    },
    "/public/v2/product-tax-codes/{product_tax_code_id}/": {
      "get": {
        "operationId": "core_api_public_v2_product_tax_codes_get_product_tax_code",
        "summary": "Get product tax code",
        "parameters": [
          {
            "in": "path",
            "name": "product_tax_code_id",
            "schema": {
              "title": "Product Tax Code Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicProductTaxCodeSchemaOut"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve an organization-scoped product tax code. Global product tax codes are list-only.",
        "tags": [
          "Product Tax Codes"
        ]
      },
      "put": {
        "operationId": "core_api_public_v2_product_tax_codes_update_product_tax_code",
        "summary": "Update product tax code",
        "parameters": [
          {
            "in": "path",
            "name": "product_tax_code_id",
            "schema": {
              "title": "Product Tax Code Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicProductTaxCodeSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "424": {
            "description": "Failed Dependency",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an organization-scoped product tax code. Global product tax codes are system managed.\n\n**Additional validations**\n- Fails with `400` if the product tax code has the `NUMERAL` source and Numeral has no product category with that `code`. Fails with `424` if Numeral is not connected or does not answer, because DualEntry cannot check the `code`.\n- Fails with `400` if the product tax code has the `KINTSUGI` source and Kintsugi has no product category with that `code`. A Kintsugi `code` has the form `<category> / <subcategory>`, for example `Digital / B2C SaaS`. Fails with `424` if Kintsugi is not connected or does not answer, because DualEntry cannot check the `code`.\n- Fails with `400` if the product tax code has the `ANROK` source and not every connected Anrok account has a product tax category with that `code`. Fails with `424` if Anrok is not connected or does not answer, because DualEntry cannot check the `code`.",
        "tags": [
          "Product Tax Codes"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicProductTaxCodeSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an organization-scoped product tax code."
          },
          "content": "Global product tax codes are system managed.\n\n**Additional validations**\n- Fails with `400` if the product tax code has the `NUMERAL` source and Numeral has no product category with that `code`. Fails with `424` if Numeral is not connected or does not answer, because DualEntry cannot check the `code`.\n- Fails with `400` if the product tax code has the `KINTSUGI` source and Kintsugi has no product category with that `code`. A Kintsugi `code` has the form `<category> / <subcategory>`, for example `Digital / B2C SaaS`. Fails with `424` if Kintsugi is not connected or does not answer, because DualEntry cannot check the `code`.\n- Fails with `400` if the product tax code has the `ANROK` source and not every connected Anrok account has a product tax category with that `code`. Fails with `424` if Anrok is not connected or does not answer, because DualEntry cannot check the `code`."
        }
      },
      "delete": {
        "operationId": "core_api_public_v2_product_tax_codes_delete_product_tax_code",
        "summary": "Delete product tax code",
        "parameters": [
          {
            "in": "path",
            "name": "product_tax_code_id",
            "schema": {
              "title": "Product Tax Code Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Delete an organization-scoped product tax code. Global product tax codes are system managed.\n\n**Additional validations**\n- Fails with `422` if any item, including an archived item, uses the product tax code.",
        "tags": [
          "Product Tax Codes"
        ],
        "x-mint": {
          "metadata": {
            "description": "Delete an organization-scoped product tax code."
          },
          "content": "Global product tax codes are system managed.\n\n**Additional validations**\n- Fails with `422` if any item, including an archived item, uses the product tax code."
        }
      }
    },
    "/public/v2/taxes/calculate/": {
      "post": {
        "operationId": "core_api_public_v2_taxes_calculate_tax",
        "summary": "Calculate tax",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxResultV2Out"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxErrorOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxErrorOut"
                }
              }
            }
          }
        },
        "description": "Calculate the tax for a transaction before you create the record.\n\nOn create and update, DualEntry keeps the tax you send on each line unless you set `auto_calculate_tax` to `required`. That setting calculates native US sales tax using DualEntry's tax engine, and Avalara US sales tax, VAT, and GST, then replaces the line tax.\n\nOn a record create or update with `auto_calculate_tax` set to `required`, a result that is DualEntry's own VAT or GST fails with `422`. A calculation that cannot finish also fails with `422`.\n\nUse this endpoint to preview the tax, to check the amounts after you choose a VAT or GST rate, or to copy the result onto lines you save yourself.\n\nRequired:\n\n- `company_id`\n- `customer_id` or `vendor_id`, and not both\n\nUsually also send:\n\n- `items`, with `item_id`, `quantity`, and `unit_price` on each line\n- `transaction_buyer_address`, `transaction_date`, and `currency_code` for US sales tax\n- `supply_date`, to keep the VAT and GST rates that are valid on that date\n\nThe response `type` is `SALES_TAX`, `VAT`, `GST`, or `NONE`. `NONE` is still HTTP `200`, and the body gives the reason, such as a missing buyer address.\n\nCopy each result line onto `items[].tax`, and onto `expenses[].tax` when the record has expenses:\n\n- `tax_code` to `tax.code`\n- `tax_rate` to `tax.rate`\n- `tax_amount` to `tax.amount`\n- `is_taxable` to `tax.is_taxable`\n- `tax_exempt_amount` to `tax.tax_exempt_amount`\n- `tax_metadata` to `tax.tax_metadata`\n- `selected_vat_rate_id` to `tax.vat_rate_id`\n- `selected_gst_tax_rate_id` to `tax.gst_tax_rate_id`\n\nFor native Canada GST and VAT, the first response includes `available_rates`. Choose one and send it on the next call as `selected_vat_rate_id` or `selected_gst_tax_rate_id`. On a record line without `auto_calculate_tax`, send that rate as `tax.vat_rate_id` or `tax.gst_tax_rate_id`.\n\nWhen a write sets `auto_calculate_tax` to `required` on a customer transaction, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer. If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n\nOn a vendor record write with `auto_calculate_tax` set to `required`, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company. The write stores only the ship addresses you sent. For a vendor preview on this endpoint, send `transaction_ship_from_address` and `transaction_ship_to_address` instead.\n\nFor US sales tax on this endpoint, send `transaction_buyer_address`. DualEntry uses that field and does not fall back to the address saved on the customer.\n\nThis endpoint is part of API v2.",
        "tags": [
          "Taxes"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaxCalculationV2In"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Calculate the tax for a transaction before you create the record."
          },
          "content": "On create and update, DualEntry keeps the tax you send on each line unless you set `auto_calculate_tax` to `required`. That setting calculates native US sales tax using DualEntry's tax engine, and Avalara US sales tax, VAT, and GST, then replaces the line tax.\n\nOn a record create or update with `auto_calculate_tax` set to `required`, a result that is DualEntry's own VAT or GST fails with `422`. A calculation that cannot finish also fails with `422`.\n\nUse this endpoint to preview the tax, to check the amounts after you choose a VAT or GST rate, or to copy the result onto lines you save yourself.\n\nRequired:\n\n- `company_id`\n- `customer_id` or `vendor_id`, and not both\n\nUsually also send:\n\n- `items`, with `item_id`, `quantity`, and `unit_price` on each line\n- `transaction_buyer_address`, `transaction_date`, and `currency_code` for US sales tax\n- `supply_date`, to keep the VAT and GST rates that are valid on that date\n\nThe response `type` is `SALES_TAX`, `VAT`, `GST`, or `NONE`. `NONE` is still HTTP `200`, and the body gives the reason, such as a missing buyer address.\n\nCopy each result line onto `items[].tax`, and onto `expenses[].tax` when the record has expenses:\n\n- `tax_code` to `tax.code`\n- `tax_rate` to `tax.rate`\n- `tax_amount` to `tax.amount`\n- `is_taxable` to `tax.is_taxable`\n- `tax_exempt_amount` to `tax.tax_exempt_amount`\n- `tax_metadata` to `tax.tax_metadata`\n- `selected_vat_rate_id` to `tax.vat_rate_id`\n- `selected_gst_tax_rate_id` to `tax.gst_tax_rate_id`\n\nFor native Canada GST and VAT, the first response includes `available_rates`. Choose one and send it on the next call as `selected_vat_rate_id` or `selected_gst_tax_rate_id`. On a record line without `auto_calculate_tax`, send that rate as `tax.vat_rate_id` or `tax.gst_tax_rate_id`.\n\nWhen a write sets `auto_calculate_tax` to `required` on a customer transaction, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer. If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n\nOn a vendor record write with `auto_calculate_tax` set to `required`, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company. The write stores only the ship addresses you sent. For a vendor preview on this endpoint, send `transaction_ship_from_address` and `transaction_ship_to_address` instead.\n\nFor US sales tax on this endpoint, send `transaction_buyer_address`. DualEntry uses that field and does not fall back to the address saved on the customer.\n\nThis endpoint is part of API v2."
        }
      }
    },
    "/public/v2/bank-match/populate/": {
      "post": {
        "operationId": "core_api_public_v2_bank_match_populate_bank_match_suggestions_endpoint",
        "summary": "Run the bank-match pipeline now",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Suggestions now refresh automatically every five minutes, so calling this\nendpoint is no longer required. It remains available for backward\ncompatibility. Returns `202 Accepted` immediately.\n\nPoll `GET /status-counts/` to watch progress, then use\n`GET /suggestions/` to read the results.",
        "tags": [
          "Bank Match"
        ],
        "x-mint": {
          "metadata": {
            "description": "Suggestions now refresh automatically every five minutes, so calling this"
          },
          "content": "endpoint is no longer required. It remains available for backward\ncompatibility. Returns `202 Accepted` immediately.\n\nPoll `GET /status-counts/` to watch progress, then use\n`GET /suggestions/` to read the results."
        }
      }
    },
    "/public/v2/bank-match/suggestions/": {
      "get": {
        "operationId": "core_api_public_v2_bank_match_list_bank_match_suggestions_endpoint",
        "summary": "List bank-match suggestions",
        "parameters": [
          {
            "in": "query",
            "name": "financial_transaction_id",
            "schema": {
              "title": "Financial Transaction Id",
              "type": [
                "integer",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "suggestion_type",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/SuggestionType"
                },
                {
                  "type": "null"
                }
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_highest_ranked",
            "schema": {
              "title": "Is Highest Ranked",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicBankMatchSuggestionSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Return the suggestions DualEntry has produced for your organization, newest\nfirst. Each suggestion pairs a bank-feed row with an accounting transaction:\neither one you already have on file (`match`) or one DualEntry drafts on your\nbehalf if you accept it (`create`).\n\nFilters:\n\n- `financial_transaction_id`: see every candidate match for one bank row.\n- `suggestion_type`: narrow to `match` or `create`.\n- `is_highest_ranked=true`: return just the top pick per bank row (the same\n  one the DualEntry UI defaults to). Leave off to see all candidates.",
        "tags": [
          "Bank Match"
        ],
        "x-mint": {
          "metadata": {
            "description": "Return the suggestions DualEntry has produced for your organization, newest"
          },
          "content": "first. Each suggestion pairs a bank-feed row with an accounting transaction:\neither one you already have on file (`match`) or one DualEntry drafts on your\nbehalf if you accept it (`create`).\n\nFilters:\n\n- `financial_transaction_id`: see every candidate match for one bank row.\n- `suggestion_type`: narrow to `match` or `create`.\n- `is_highest_ranked=true`: return just the top pick per bank row (the same\n  one the DualEntry UI defaults to). Leave off to see all candidates."
        }
      }
    },
    "/public/v2/bank-match/suggestions/{suggestion_id}/": {
      "get": {
        "operationId": "core_api_public_v2_bank_match_get_bank_match_suggestion_endpoint",
        "summary": "Get one bank-match suggestion",
        "parameters": [
          {
            "in": "path",
            "name": "suggestion_id",
            "schema": {
              "title": "Suggestion Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBankMatchSuggestionSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Fetch a single suggestion by id. Returns `404` if the id doesn't exist or belongs to another organization.",
        "tags": [
          "Bank Match"
        ]
      }
    },
    "/public/v2/bank-match/status-counts/": {
      "get": {
        "operationId": "core_api_public_v2_bank_match_get_bank_match_status_counts_endpoint",
        "summary": "Check bank-match pipeline progress",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBankMatchStatusCountsSchemaOut"
                }
              }
            }
          }
        },
        "description": "See how many bank-feed rows are sitting in each pipeline stage. Useful after\ncalling `/populate/`: poll this every few seconds to know when the\nmatcher is done.\n\nThe pipeline is still working while any of these are non-zero:\n`unprocessed`, `awaiting_ai`, `ai_in_progress`. Once all three hit zero,\nyou're done, and the terminal stages (`ai_suggested`,\n`deterministic_suggested`, `matched`, `ai_no_match`, `no_match`, `excluded`)\nhold the outcome.\n\nExpired bank-feed rows are excluded so the numbers reflect real pending work.",
        "tags": [
          "Bank Match"
        ],
        "x-mint": {
          "metadata": {
            "description": "See how many bank-feed rows are sitting in each pipeline stage."
          },
          "content": "Useful after\ncalling `/populate/`: poll this every few seconds to know when the\nmatcher is done.\n\nThe pipeline is still working while any of these are non-zero:\n`unprocessed`, `awaiting_ai`, `ai_in_progress`. Once all three hit zero,\nyou're done, and the terminal stages (`ai_suggested`,\n`deterministic_suggested`, `matched`, `ai_no_match`, `no_match`, `excluded`)\nhold the outcome.\n\nExpired bank-feed rows are excluded so the numbers reflect real pending work."
        }
      }
    },
    "/public/v2/bank-match/bank-transactions/": {
      "get": {
        "operationId": "core_api_public_v2_bank_match_list_bank_transactions_endpoint",
        "summary": "List bank-feed transactions",
        "parameters": [
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "financial_account_id",
            "schema": {
              "description": "Limit to a single bank/credit-card account.",
              "title": "Financial Account Id",
              "type": [
                "integer",
                "null"
              ]
            },
            "required": false,
            "description": "Limit to a single bank/credit-card account."
          },
          {
            "in": "query",
            "name": "matching_status",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/MatchingStatus"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Pipeline stage filter, e.g. `unprocessed`, `ai_suggested`, `matched`, `no_match`, `excluded`."
            },
            "required": false,
            "description": "Pipeline stage filter, e.g. `unprocessed`, `ai_suggested`, `matched`, `no_match`, `excluded`."
          },
          {
            "in": "query",
            "name": "date_from",
            "schema": {
              "description": "Inclusive lower bound on `date`.",
              "title": "Date From",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Inclusive lower bound on `date`."
          },
          {
            "in": "query",
            "name": "date_to",
            "schema": {
              "description": "Inclusive upper bound on `date`.",
              "title": "Date To",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Inclusive upper bound on `date`."
          },
          {
            "in": "query",
            "name": "is_posted",
            "schema": {
              "description": "`true` for posted-only, `false` for pending-only, omit for both.",
              "title": "Is Posted",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false,
            "description": "`true` for posted-only, `false` for pending-only, omit for both."
          },
          {
            "in": "query",
            "name": "include_expired",
            "schema": {
              "default": false,
              "description": "By default expired rows are hidden; pass `true` to see them.",
              "title": "Include Expired",
              "type": "boolean"
            },
            "required": false,
            "description": "By default expired rows are hidden; pass `true` to see them."
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicBankTransactionSchemaOut"
                }
              }
            }
          }
        },
        "description": "Return bank-feed rows (one per debit/credit on a connected bank or credit-card\naccount), newest first. Use this to drive reconciliation externally: page\nthrough the rows, decide which DualEntry transaction each one corresponds to,\nthen `POST /matches/` to record the pairing.",
        "tags": [
          "Bank Match"
        ],
        "x-mint": {
          "metadata": {
            "description": "Return bank-feed rows (one per debit/credit on a connected bank or credit-card"
          },
          "content": "account), newest first. Use this to drive reconciliation externally: page\nthrough the rows, decide which DualEntry transaction each one corresponds to,\nthen `POST /matches/` to record the pairing."
        }
      }
    },
    "/public/v2/bank-match/bank-transactions/{financial_transaction_id}/": {
      "get": {
        "operationId": "core_api_public_v2_bank_match_get_bank_transaction_endpoint",
        "summary": "Get one bank-feed transaction",
        "parameters": [
          {
            "in": "path",
            "name": "financial_transaction_id",
            "schema": {
              "title": "Financial Transaction Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBankTransactionSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Fetch a single bank-feed row by id. Returns `404` if it doesn't exist or belongs to another organization.",
        "tags": [
          "Bank Match"
        ]
      }
    },
    "/public/v2/bank-match/matches/": {
      "post": {
        "operationId": "core_api_public_v2_bank_match_create_bank_match_endpoint",
        "summary": "Confirm a bank-match",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBankMatchSuccessSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Record that bank-feed row(s) correspond to DualEntry transaction(s)/entry(s).\nOn success each row's `matching_status` flips to `matched`, the pairing shows\nup in the DualEntry reconciliation view, and the response returns the\n`match_group_id`.\n\nPass singular fields for a 1:1 match, or `financial_transaction_ids` plus\n`transaction_ids`/`entry_ids` for an M:N match.\n\nConstraints (validated server-side and reported as `400` on failure):\n\n- All bank-feed rows must be on the same financial account as the DualEntry\n  targets' bank/credit-card entries.\n- Amounts must reconcile (sum of bank amounts equals net entry amount) in a\n  single currency.\n- All bank-feed rows must share the same sign; balance alone is not enough.\n- No item may already be part of another match (call `/unmatches/` first\n  to redo a pairing).\n\nThis endpoint kicks a fresh suggestion run for the org after a successful match\nso future suggestions reflect the new state.",
        "tags": [
          "Bank Match"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicBankMatchCreateSchemaIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Record that bank-feed row(s) correspond to DualEntry transaction(s)/entry(s)."
          },
          "content": "On success each row's `matching_status` flips to `matched`, the pairing shows\nup in the DualEntry reconciliation view, and the response returns the\n`match_group_id`.\n\nPass singular fields for a 1:1 match, or `financial_transaction_ids` plus\n`transaction_ids`/`entry_ids` for an M:N match.\n\nConstraints (validated server-side and reported as `400` on failure):\n\n- All bank-feed rows must be on the same financial account as the DualEntry\n  targets' bank/credit-card entries.\n- Amounts must reconcile (sum of bank amounts equals net entry amount) in a\n  single currency.\n- All bank-feed rows must share the same sign; balance alone is not enough.\n- No item may already be part of another match (call `/unmatches/` first\n  to redo a pairing).\n\nThis endpoint kicks a fresh suggestion run for the org after a successful match\nso future suggestions reflect the new state."
        }
      }
    },
    "/public/v2/bank-match/unmatches/": {
      "post": {
        "operationId": "core_api_public_v2_bank_match_delete_bank_match_endpoint",
        "summary": "Undo a bank-match",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Tear down whatever match the given bank-feed row (or `match_group_id`) belongs\nto. If nothing is matched, the call is a safe no-op. Unmatching any one\nmember of a group, or passing its `match_group_id`, dissolves the entire group.\n\nProvide exactly one of `financial_transaction_id` or `match_group_id`.",
        "tags": [
          "Bank Match"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicBankMatchUnmatchSchemaIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Tear down whatever match the given bank-feed row (or `match_group_id`) belongs"
          },
          "content": "to. If nothing is matched, the call is a safe no-op. Unmatching any one\nmember of a group, or passing its `match_group_id`, dissolves the entire group.\n\nProvide exactly one of `financial_transaction_id` or `match_group_id`."
        }
      }
    },
    "/public/v2/bank-connections/": {
      "post": {
        "operationId": "core_api_public_v2_bank_connections_register_bank_connection",
        "summary": "Register a customer API bank connection",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBankConnectionSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Register or upsert a customer-built bank connection and optional accounts with `customer_api` as `source_type`.\n\n**Side effects**\n- If you register an account with the status `inactive`, DualEntry unlinks the GL accounts that link to it.",
        "tags": [
          "Bank Connections"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicBankConnectionRegisterSchemaIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Register or upsert a customer-built bank connection and optional accounts with `customer_api` as `source_type`."
          },
          "content": "**Side effects**\n- If you register an account with the status `inactive`, DualEntry unlinks the GL accounts that link to it."
        }
      },
      "get": {
        "operationId": "core_api_public_v2_bank_connections_list_bank_connections",
        "summary": "List customer API bank connections",
        "parameters": [
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicBankConnectionSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "List bank connections registered via the customer API for the calling organization.",
        "tags": [
          "Bank Connections"
        ]
      }
    },
    "/public/v2/bank-connections/accounts/{financial_account_id}/transactions/": {
      "post": {
        "operationId": "core_api_public_v2_bank_connections_ingest_customer_api_transactions_endpoint",
        "summary": "Push bank transactions for a customer_api account",
        "parameters": [
          {
            "in": "path",
            "name": "financial_account_id",
            "schema": {
              "title": "Financial Account Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCustomerApiTransactionBatchOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Batch upsert bank-feed transactions for a registered `customer_api` account\nidentified by DualEntry financial account id.\n\nIdempotency key is transaction `external_trx_id` (stored as source_id) scoped to\nthe organization with `customer_api` as `source_type`. Each item must include\n`account_id` matching the registered customer account key. One bad item does\nnot roll back other items; the response lists per-item outcomes.\n\nRegistration must be active (not unregistered). Max batch size is 250.\n\n**Side effects**\n- If at least one transaction saves, DualEntry sets the connection `last_sync_at`, and sets `successfully_aggregated_at` when that is empty.",
        "tags": [
          "Bank Connections"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicCustomerApiTransactionBatchIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Batch upsert bank-feed transactions for a registered `customer_api` account"
          },
          "content": "identified by DualEntry financial account id.\n\nIdempotency key is transaction `external_trx_id` (stored as source_id) scoped to\nthe organization with `customer_api` as `source_type`. Each item must include\n`account_id` matching the registered customer account key. One bad item does\nnot roll back other items; the response lists per-item outcomes.\n\nRegistration must be active (not unregistered). Max batch size is 250.\n\n**Side effects**\n- If at least one transaction saves, DualEntry sets the connection `last_sync_at`, and sets `successfully_aggregated_at` when that is empty."
        }
      }
    },
    "/public/v2/bank-connections/{connection_id}/accounts/": {
      "post": {
        "operationId": "core_api_public_v2_bank_connections_register_bank_connection_accounts",
        "summary": "Register accounts under a customer API bank connection",
        "parameters": [
          {
            "in": "path",
            "name": "connection_id",
            "schema": {
              "title": "Connection Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBankConnectionSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Upsert accounts for an existing customer_api connection identified by DualEntry connection id.\n\n**Side effects**\n- If you register an account with the status `inactive`, DualEntry unlinks the GL accounts that link to it.",
        "tags": [
          "Bank Connections"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicBankConnectionAccountsRegisterSchemaIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Upsert accounts for an existing customer_api connection identified by DualEntry connection id."
          },
          "content": "**Side effects**\n- If you register an account with the status `inactive`, DualEntry unlinks the GL accounts that link to it."
        }
      },
      "get": {
        "operationId": "core_api_public_v2_bank_connections_list_bank_connection_accounts",
        "summary": "List accounts for a customer API bank connection",
        "parameters": [
          {
            "in": "path",
            "name": "connection_id",
            "schema": {
              "title": "Connection Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicBankConnectionAccountSchemaOut"
                  },
                  "title": "Response",
                  "type": "array"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "List accounts registered under a customer_api bank connection.",
        "tags": [
          "Bank Connections"
        ]
      }
    },
    "/public/v2/bank-connections/{connection_id}/": {
      "get": {
        "operationId": "core_api_public_v2_bank_connections_get_bank_connection",
        "summary": "Get a customer API bank connection",
        "parameters": [
          {
            "in": "path",
            "name": "connection_id",
            "schema": {
              "title": "Connection Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicBankConnectionSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve one customer_api bank connection by DualEntry id.",
        "tags": [
          "Bank Connections"
        ]
      },
      "delete": {
        "operationId": "core_api_public_v2_bank_connections_delete_bank_connection",
        "summary": "Unregister a customer API bank connection",
        "parameters": [
          {
            "in": "path",
            "name": "connection_id",
            "schema": {
              "title": "Connection Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Unregister a customer_api bank connection. Further pushes and account registration are rejected.\n\n**Side effects**\n- DualEntry unlinks the GL accounts of the bank connection before it changes the connection status.",
        "tags": [
          "Bank Connections"
        ],
        "x-mint": {
          "metadata": {
            "description": "Unregister a customer_api bank connection."
          },
          "content": "Further pushes and account registration are rejected.\n\n**Side effects**\n- DualEntry unlinks the GL accounts of the bank connection before it changes the connection status."
        }
      }
    },
    "/public/v2/quotes/": {
      "get": {
        "operationId": "list_Quote_records",
        "summary": "List Quote records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "valid_until_from",
            "schema": {
              "title": "Valid Until From",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "valid_until_to",
            "schema": {
              "title": "Valid Until To",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicQuoteListSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of Quote records with filtering and ordering options.",
        "tags": [
          "Quotes"
        ]
      },
      "post": {
        "operationId": "create_Quote_record",
        "summary": "Create Quote record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicQuoteSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new Quote record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Quotes"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicQuoteSchemaCreateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Create a new Quote record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/quotes/{record_number}/": {
      "get": {
        "operationId": "get_Quote_record",
        "summary": "Get Quote record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "valid_until_from",
            "schema": {
              "title": "Valid Until From",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "valid_until_to",
            "schema": {
              "title": "Valid Until To",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status",
            "schema": {
              "title": "Approval Status",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "approval_status_scope",
            "schema": {
              "title": "Approval Status Scope",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicQuoteSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific Quote record by its record number with all related data.",
        "tags": [
          "Quotes"
        ]
      },
      "put": {
        "operationId": "update_Quote_record",
        "summary": "Update Quote record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicQuoteSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Update an existing Quote record with the provided data. Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Quotes"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicQuoteSchemaUpdateIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Update an existing Quote record with the provided data."
          },
          "content": "Validates all required fields and business rules.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      },
      "patch": {
        "operationId": "patch_Quote_record",
        "summary": "Update Quote record (partial)",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicQuoteSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Partially update an existing Quote record. Send only the fields you want to change. Anything you don't send stays as it is. Updates are subject to the same constraints as the full update endpoint: period locks, payment-applied restrictions, and approval-workflow rules apply.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks.",
        "tags": [
          "Quotes"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicQuoteSchemaPatchIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Partially update an existing Quote record."
          },
          "content": "Send only the fields you want to change. Anything you don't send stays as it is. Updates are subject to the same constraints as the full update endpoint: period locks, payment-applied restrictions, and approval-workflow rules apply.\n\n**Side effects**\n- If an approval workflow matches this request, DualEntry can set `record_status` back to `draft`.\n\n**Additional validations**\n- Fails with `422` if you set an inactive, archived, or draft customer or vendor, or an inactive company.\n- Fails with `422` if you set the customer or vendor that stands for the record's own company as a party.\n- A reference that the record or its linked source record already holds passes these checks."
        }
      }
    },
    "/public/v2/quotes/{record_number}/send/": {
      "post": {
        "operationId": "send_Quote_record",
        "summary": "Send Quote record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Email an approved quote to its buyers and mark it sent. Blank subject, message, and reply-to fall back to the organization's quote email settings, and so do omitted CC and BCC lists. Draft, pending, and rejected quotes cannot be sent.",
        "tags": [
          "Quotes"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicQuoteSendSchemaIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Email an approved quote to its buyers and mark it sent."
          },
          "content": "Blank subject, message, and reply-to fall back to the organization's quote email settings, and so do omitted CC and BCC lists. Draft, pending, and rejected quotes cannot be sent."
        }
      }
    },
    "/public/v2/e-invoicing/": {
      "get": {
        "operationId": "core_api_public_v2_e_invoicing_get_e_invoicing_status",
        "summary": "Get the e-invoicing status of the organization",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicEInvoicingStatusSchemaOut"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Return whether the organization has the e-invoicing subscription. You need the e-invoicing view permission. The route answers whether or not the organization has the subscription.",
        "tags": [
          "E-invoicing"
        ],
        "x-mint": {
          "metadata": {
            "description": "Return whether the organization has the e-invoicing subscription."
          },
          "content": "You need the e-invoicing view permission. The route answers whether or not the organization has the subscription."
        }
      }
    },
    "/public/v2/e-invoicing/countries/": {
      "get": {
        "operationId": "core_api_public_v2_e_invoicing_list_e_invoicing_countries",
        "summary": "List the e-invoicing countries",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicEInvoicingCountrySchemaOut"
                  },
                  "title": "Response",
                  "type": "array"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Return each country that DualEntry files e-invoices in, with its agency, its standard, and the identity fields it asks for. `enabled_for_organization` is true when a company of the organization files in that country. You need the e-invoicing view permission. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription.",
        "tags": [
          "E-invoicing"
        ],
        "x-mint": {
          "metadata": {
            "description": "Return each country that DualEntry files e-invoices in, with its agency, its standard, and the identity fields it asks for."
          },
          "content": "`enabled_for_organization` is true when a company of the organization files in that country. You need the e-invoicing view permission. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription."
        }
      }
    },
    "/public/v2/e-invoicing/companies/": {
      "get": {
        "operationId": "core_api_public_v2_e_invoicing_list_e_invoicing_companies",
        "summary": "List the e-invoicing settings of the companies",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of companies to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of companies to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of companies to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of companies to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicEInvoicingCompaniesSchemaOut"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Return one page of the companies that have an e-invoicing country, with the decision, the readiness checks, and the registration of each country. Change these settings in the DualEntry app. You need the e-invoicing view permission. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription.",
        "tags": [
          "E-invoicing"
        ],
        "x-mint": {
          "metadata": {
            "description": "Return one page of the companies that have an e-invoicing country, with the decision, the readiness checks, and the registration of each country."
          },
          "content": "Change these settings in the DualEntry app. You need the e-invoicing view permission. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription."
        }
      }
    },
    "/public/v2/e-invoicing/companies/{company_id}/": {
      "get": {
        "operationId": "core_api_public_v2_e_invoicing_get_e_invoicing_company",
        "summary": "Get the e-invoicing settings of a company",
        "parameters": [
          {
            "in": "path",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicEInvoicingCompanySchemaOut"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Return the e-invoicing countries of one company, with the decision, the readiness checks, and the registration of each country. You need the e-invoicing view permission. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription.",
        "tags": [
          "E-invoicing"
        ],
        "x-mint": {
          "metadata": {
            "description": "Return the e-invoicing countries of one company, with the decision, the readiness checks, and the registration of each country."
          },
          "content": "You need the e-invoicing view permission. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription."
        }
      }
    },
    "/public/v2/e-invoicing/companies/{company_id}/countries/{country}/registration/": {
      "get": {
        "operationId": "core_api_public_v2_e_invoicing_get_e_invoicing_registration",
        "summary": "Get the e-invoicing registration of a company",
        "parameters": [
          {
            "in": "path",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "country",
            "schema": {
              "enum": [
                "AA",
                "AB",
                "AC",
                "AD",
                "AE",
                "AF",
                "AG",
                "AH",
                "AI",
                "AJ",
                "AK",
                "AL",
                "AM",
                "AN",
                "AO",
                "AP",
                "AQ",
                "AR",
                "AS",
                "AT",
                "AU",
                "AV",
                "AW",
                "AX",
                "AY",
                "AZ",
                "BA",
                "BB",
                "BC",
                "BD",
                "BE",
                "BF",
                "BG",
                "BH",
                "BI",
                "BJ",
                "BK",
                "BL",
                "BM",
                "BN",
                "BO",
                "BP",
                "BQ",
                "BR",
                "BS",
                "BT",
                "BU",
                "BV",
                "BW",
                "BX",
                "BY",
                "BZ",
                "CA",
                "CB",
                "CC",
                "CD",
                "CE",
                "CF",
                "CG",
                "CH",
                "CI",
                "CJ",
                "CK",
                "CL",
                "CM",
                "CN",
                "CO",
                "CP",
                "CQ",
                "CR",
                "CS",
                "CT",
                "CU",
                "CV",
                "CW",
                "CX",
                "CY",
                "CZ",
                "DA",
                "DB",
                "DC",
                "DD",
                "DE",
                "DF",
                "DG",
                "DH",
                "DI",
                "DJ",
                "DK",
                "DL",
                "DM",
                "DN",
                "DO",
                "DP",
                "DQ",
                "DR",
                "DS",
                "DT",
                "DU",
                "DV",
                "DW",
                "DX",
                "DY",
                "DZ",
                "EA",
                "EB",
                "EC",
                "ED",
                "EE",
                "EF",
                "EG",
                "EH",
                "EI",
                "EJ",
                "EK",
                "EL",
                "EM",
                "EN",
                "EO",
                "EP",
                "EQ",
                "ER",
                "ES",
                "ET",
                "EU",
                "EV",
                "EW",
                "EX",
                "EY",
                "EZ",
                "FA",
                "FB",
                "FC",
                "FD",
                "FE",
                "FF",
                "FG",
                "FH",
                "FI",
                "FJ",
                "FK",
                "FL",
                "FM",
                "FN",
                "FO",
                "FP",
                "FQ",
                "FR",
                "FS",
                "FT",
                "FU",
                "FV",
                "FW",
                "FX",
                "FY",
                "FZ",
                "GA",
                "GB",
                "GC",
                "GD",
                "GE",
                "GF",
                "GG",
                "GH",
                "GI",
                "GJ",
                "GK",
                "GL",
                "GM",
                "GN",
                "GO",
                "GP",
                "GQ",
                "GR",
                "GS",
                "GT",
                "GU",
                "GV",
                "GW",
                "GX",
                "GY",
                "GZ",
                "HA",
                "HB",
                "HC",
                "HD",
                "HE",
                "HF",
                "HG",
                "HH",
                "HI",
                "HJ",
                "HK",
                "HL",
                "HM",
                "HN",
                "HO",
                "HP",
                "HQ",
                "HR",
                "HS",
                "HT",
                "HU",
                "HV",
                "HW",
                "HX",
                "HY",
                "HZ",
                "IA",
                "IB",
                "IC",
                "ID",
                "IE",
                "IF",
                "IG",
                "IH",
                "II",
                "IJ",
                "IK",
                "IL",
                "IM",
                "IN",
                "IO",
                "IP",
                "IQ",
                "IR",
                "IS",
                "IT",
                "IU",
                "IV",
                "IW",
                "IX",
                "IY",
                "IZ",
                "JA",
                "JB",
                "JC",
                "JD",
                "JE",
                "JF",
                "JG",
                "JH",
                "JI",
                "JJ",
                "JK",
                "JL",
                "JM",
                "JN",
                "JO",
                "JP",
                "JQ",
                "JR",
                "JS",
                "JT",
                "JU",
                "JV",
                "JW",
                "JX",
                "JY",
                "JZ",
                "KA",
                "KB",
                "KC",
                "KD",
                "KE",
                "KF",
                "KG",
                "KH",
                "KI",
                "KJ",
                "KK",
                "KL",
                "KM",
                "KN",
                "KO",
                "KP",
                "KQ",
                "KR",
                "KS",
                "KT",
                "KU",
                "KV",
                "KW",
                "KX",
                "KY",
                "KZ",
                "LA",
                "LB",
                "LC",
                "LD",
                "LE",
                "LF",
                "LG",
                "LH",
                "LI",
                "LJ",
                "LK",
                "LL",
                "LM",
                "LN",
                "LO",
                "LP",
                "LQ",
                "LR",
                "LS",
                "LT",
                "LU",
                "LV",
                "LW",
                "LX",
                "LY",
                "LZ",
                "MA",
                "MB",
                "MC",
                "MD",
                "ME",
                "MF",
                "MG",
                "MH",
                "MI",
                "MJ",
                "MK",
                "ML",
                "MM",
                "MN",
                "MO",
                "MP",
                "MQ",
                "MR",
                "MS",
                "MT",
                "MU",
                "MV",
                "MW",
                "MX",
                "MY",
                "MZ",
                "NA",
                "NB",
                "NC",
                "ND",
                "NE",
                "NF",
                "NG",
                "NH",
                "NI",
                "NJ",
                "NK",
                "NL",
                "NM",
                "NN",
                "NO",
                "NP",
                "NQ",
                "NR",
                "NS",
                "NT",
                "NU",
                "NV",
                "NW",
                "NX",
                "NY",
                "NZ",
                "OA",
                "OB",
                "OC",
                "OD",
                "OE",
                "OF",
                "OG",
                "OH",
                "OI",
                "OJ",
                "OK",
                "OL",
                "OM",
                "ON",
                "OO",
                "OP",
                "OQ",
                "OR",
                "OS",
                "OT",
                "OU",
                "OV",
                "OW",
                "OX",
                "OY",
                "OZ",
                "PA",
                "PB",
                "PC",
                "PD",
                "PE",
                "PF",
                "PG",
                "PH",
                "PI",
                "PJ",
                "PK",
                "PL",
                "PM",
                "PN",
                "PO",
                "PP",
                "PQ",
                "PR",
                "PS",
                "PT",
                "PU",
                "PV",
                "PW",
                "PX",
                "PY",
                "PZ",
                "QA",
                "QB",
                "QC",
                "QD",
                "QE",
                "QF",
                "QG",
                "QH",
                "QI",
                "QJ",
                "QK",
                "QL",
                "QM",
                "QN",
                "QO",
                "QP",
                "QQ",
                "QR",
                "QS",
                "QT",
                "QU",
                "QV",
                "QW",
                "QX",
                "QY",
                "QZ",
                "RA",
                "RB",
                "RC",
                "RD",
                "RE",
                "RF",
                "RG",
                "RH",
                "RI",
                "RJ",
                "RK",
                "RL",
                "RM",
                "RN",
                "RO",
                "RP",
                "RQ",
                "RR",
                "RS",
                "RT",
                "RU",
                "RV",
                "RW",
                "RX",
                "RY",
                "RZ",
                "SA",
                "SB",
                "SC",
                "SD",
                "SE",
                "SF",
                "SG",
                "SH",
                "SI",
                "SJ",
                "SK",
                "SL",
                "SM",
                "SN",
                "SO",
                "SP",
                "SQ",
                "SR",
                "SS",
                "ST",
                "SU",
                "SV",
                "SW",
                "SX",
                "SY",
                "SZ",
                "TA",
                "TB",
                "TC",
                "TD",
                "TE",
                "TF",
                "TG",
                "TH",
                "TI",
                "TJ",
                "TK",
                "TL",
                "TM",
                "TN",
                "TO",
                "TP",
                "TQ",
                "TR",
                "TS",
                "TT",
                "TU",
                "TV",
                "TW",
                "TX",
                "TY",
                "TZ",
                "UA",
                "UB",
                "UC",
                "UD",
                "UE",
                "UF",
                "UG",
                "UH",
                "UI",
                "UJ",
                "UK",
                "UL",
                "UM",
                "UN",
                "UO",
                "UP",
                "UQ",
                "UR",
                "US",
                "UT",
                "UU",
                "UV",
                "UW",
                "UX",
                "UY",
                "UZ",
                "VA",
                "VB",
                "VC",
                "VD",
                "VE",
                "VF",
                "VG",
                "VH",
                "VI",
                "VJ",
                "VK",
                "VL",
                "VM",
                "VN",
                "VO",
                "VP",
                "VQ",
                "VR",
                "VS",
                "VT",
                "VU",
                "VV",
                "VW",
                "VX",
                "VY",
                "VZ",
                "WA",
                "WB",
                "WC",
                "WD",
                "WE",
                "WF",
                "WG",
                "WH",
                "WI",
                "WJ",
                "WK",
                "WL",
                "WM",
                "WN",
                "WO",
                "WP",
                "WQ",
                "WR",
                "WS",
                "WT",
                "WU",
                "WV",
                "WW",
                "WX",
                "WY",
                "WZ",
                "XA",
                "XB",
                "XC",
                "XD",
                "XE",
                "XF",
                "XG",
                "XH",
                "XI",
                "XJ",
                "XK",
                "XL",
                "XM",
                "XN",
                "XO",
                "XP",
                "XQ",
                "XR",
                "XS",
                "XT",
                "XU",
                "XV",
                "XW",
                "XX",
                "XY",
                "XZ",
                "YA",
                "YB",
                "YC",
                "YD",
                "YE",
                "YF",
                "YG",
                "YH",
                "YI",
                "YJ",
                "YK",
                "YL",
                "YM",
                "YN",
                "YO",
                "YP",
                "YQ",
                "YR",
                "YS",
                "YT",
                "YU",
                "YV",
                "YW",
                "YX",
                "YY",
                "YZ",
                "ZA",
                "ZB",
                "ZC",
                "ZD",
                "ZE",
                "ZF",
                "ZG",
                "ZH",
                "ZI",
                "ZJ",
                "ZK",
                "ZL",
                "ZM",
                "ZN",
                "ZO",
                "ZP",
                "ZQ",
                "ZR",
                "ZS",
                "ZT",
                "ZU",
                "ZV",
                "ZW",
                "ZX",
                "ZY",
                "ZZ"
              ],
              "title": "SystemCountries",
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicEInvoicingRegistrationSchemaOut"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Return the registration of one company with the agency of one country: its status, the identity fields of the company, the required fields it misses, and the faults of the agency. Change the registration in the DualEntry app. You need the e-invoicing view permission.\n\nThe request fails in these cases:\n\n- The request fails with `422` and `error_code` `e_invoicing_error` when DualEntry does not file in the country.\n- The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription.",
        "tags": [
          "E-invoicing"
        ],
        "x-mint": {
          "metadata": {
            "description": "Return the registration of one company with the agency of one country: its status, the identity fields of the company, the required fields it misses, and\u2026"
          },
          "content": "Return the registration of one company with the agency of one country: its status, the identity fields of the company, the required fields it misses, and the faults of the agency. Change the registration in the DualEntry app. You need the e-invoicing view permission.\n\nThe request fails in these cases:\n\n- The request fails with `422` and `error_code` `e_invoicing_error` when DualEntry does not file in the country.\n- The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription."
        }
      }
    },
    "/public/v2/e-invoicing/events/": {
      "get": {
        "operationId": "core_api_public_v2_e_invoicing_list_e_invoicing_events",
        "summary": "List the e-invoice filing events",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of events to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of events to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of events to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of events to skip before starting to return results"
          },
          {
            "in": "query",
            "name": "needs_attention",
            "schema": {
              "default": false,
              "description": "Keep the events of the filings that wait for a user: failed, rejected, not filed, or held by a setup.",
              "title": "Needs Attention",
              "type": "boolean"
            },
            "required": false,
            "description": "Keep the events of the filings that wait for a user: failed, rejected, not filed, or held by a setup."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicEInvoicingFilingEventsSchemaOut"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Return one page of the status changes of every filing you can view, newest first. Each filing change also sends the `core.e_invoice_filing/updated` webhook. You need the e-invoicing view permission. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription.",
        "tags": [
          "E-invoicing"
        ],
        "x-mint": {
          "metadata": {
            "description": "Return one page of the status changes of every filing you can view, newest first."
          },
          "content": "Each filing change also sends the `core.e_invoice_filing/updated` webhook. You need the e-invoicing view permission. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription."
        }
      }
    },
    "/public/v2/e-invoicing/preflight/": {
      "get": {
        "operationId": "core_api_public_v2_e_invoicing_get_e_invoicing_preflight",
        "summary": "Check that a customer can receive an e-invoice",
        "parameters": [
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicEInvoicingPreflightSchemaOut"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Return whether an invoice of the company reaches the customer on the delivery network of its filing country, such as Peppol, before you post it. The check can take up to 10 seconds. You need the invoice create permission.\n\nThe request fails in these cases:\n\n- The request fails with `404` when you cannot reach the company or the customer.\n- The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription.",
        "tags": [
          "E-invoicing"
        ],
        "x-mint": {
          "metadata": {
            "description": "Return whether an invoice of the company reaches the customer on the delivery network of its filing country, such as Peppol, before you post it."
          },
          "content": "The check can take up to 10 seconds. You need the invoice create permission.\n\nThe request fails in these cases:\n\n- The request fails with `404` when you cannot reach the company or the customer.\n- The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription."
        }
      }
    },
    "/public/v2/e-invoicing/invoices/{number}/": {
      "get": {
        "operationId": "core_api_public_v2_e_invoicing_get_invoice_e_invoice",
        "summary": "Get the e-invoice filing of an invoice",
        "parameters": [
          {
            "in": "path",
            "name": "number",
            "schema": {
              "title": "Number",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicInvoiceEInvoiceSchemaOut"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Return the e-invoice filing of the invoice with this number. You need the invoice view permission. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription and DualEntry did not file the invoice.",
        "tags": [
          "E-invoicing"
        ],
        "x-mint": {
          "metadata": {
            "description": "Return the e-invoice filing of the invoice with this number."
          },
          "content": "You need the invoice view permission. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription and DualEntry did not file the invoice."
        }
      }
    },
    "/public/v2/e-invoicing/customer-credits/{number}/": {
      "get": {
        "operationId": "core_api_public_v2_e_invoicing_get_customer_credit_e_invoice",
        "summary": "Get the credit note filing of a customer credit",
        "parameters": [
          {
            "in": "path",
            "name": "number",
            "schema": {
              "title": "Number",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicEInvoicingFilingSchemaOut"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Return the credit note filing of the customer credit with this number. You need the customer credit view permission. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription and DualEntry did not file the customer credit.",
        "tags": [
          "E-invoicing"
        ],
        "x-mint": {
          "metadata": {
            "description": "Return the credit note filing of the customer credit with this number."
          },
          "content": "You need the customer credit view permission. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription and DualEntry did not file the customer credit."
        }
      }
    },
    "/public/v2/e-invoicing/invoices/{number}/retry/": {
      "post": {
        "operationId": "core_api_public_v2_e_invoicing_retry_invoice_e_invoice",
        "summary": "Retry the e-invoice filing of an invoice",
        "parameters": [
          {
            "in": "path",
            "name": "number",
            "schema": {
              "title": "Number",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicInvoiceEInvoiceSchemaOut"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Send the failed or rejected e-invoice filing of the invoice with this number again, after you fix the cause. The response is the filing and its new status. You need the invoice edit permission.\n\nThe request fails in these cases:\n\n- The request fails with `422` and `error_code` `e_invoicing_not_retryable` when the filing is in any other status, when the invoice has no filing, or when the invoice is not posted.\n- The request fails with `503` and `error_code` `e_invoicing_engine` when the e-invoicing engine does not answer.\n- The request fails with `503` and `error_code` `e_invoicing_setup` when the setup of the country is broken.\n- The request fails with `502` and `error_code` `e_invoicing_engine` when the engine refuses the request.\n- The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription.",
        "tags": [
          "E-invoicing"
        ],
        "x-mint": {
          "metadata": {
            "description": "Send the failed or rejected e-invoice filing of the invoice with this number again, after you fix the cause."
          },
          "content": "The response is the filing and its new status. You need the invoice edit permission.\n\nThe request fails in these cases:\n\n- The request fails with `422` and `error_code` `e_invoicing_not_retryable` when the filing is in any other status, when the invoice has no filing, or when the invoice is not posted.\n- The request fails with `503` and `error_code` `e_invoicing_engine` when the e-invoicing engine does not answer.\n- The request fails with `503` and `error_code` `e_invoicing_setup` when the setup of the country is broken.\n- The request fails with `502` and `error_code` `e_invoicing_engine` when the engine refuses the request.\n- The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription."
        }
      }
    },
    "/public/v2/e-invoicing/customer-credits/{number}/retry/": {
      "post": {
        "operationId": "core_api_public_v2_e_invoicing_retry_customer_credit_e_invoice",
        "summary": "Retry the credit note filing of a customer credit",
        "parameters": [
          {
            "in": "path",
            "name": "number",
            "schema": {
              "title": "Number",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicEInvoicingFilingSchemaOut"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Send the failed or rejected e-invoice filing of the customer credit with this number again, after you fix the cause. The response is the filing and its new status. You need the customer credit edit permission.\n\nThe request fails in these cases:\n\n- The request fails with `422` and `error_code` `e_invoicing_not_retryable` when the filing is in any other status, when the customer credit has no filing, or when the customer credit is not posted.\n- The request fails with `503` and `error_code` `e_invoicing_engine` when the e-invoicing engine does not answer.\n- The request fails with `503` and `error_code` `e_invoicing_setup` when the setup of the country is broken.\n- The request fails with `502` and `error_code` `e_invoicing_engine` when the engine refuses the request.\n- The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription.",
        "tags": [
          "E-invoicing"
        ],
        "x-mint": {
          "metadata": {
            "description": "Send the failed or rejected e-invoice filing of the customer credit with this number again, after you fix the cause."
          },
          "content": "The response is the filing and its new status. You need the customer credit edit permission.\n\nThe request fails in these cases:\n\n- The request fails with `422` and `error_code` `e_invoicing_not_retryable` when the filing is in any other status, when the customer credit has no filing, or when the customer credit is not posted.\n- The request fails with `503` and `error_code` `e_invoicing_engine` when the e-invoicing engine does not answer.\n- The request fails with `503` and `error_code` `e_invoicing_setup` when the setup of the country is broken.\n- The request fails with `502` and `error_code` `e_invoicing_engine` when the engine refuses the request.\n- The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription."
        }
      }
    },
    "/public/v2/e-invoicing/invoices/{number}/refresh/": {
      "post": {
        "operationId": "core_api_public_v2_e_invoicing_refresh_invoice_e_invoice",
        "summary": "Refresh the e-invoice filing of an invoice",
        "parameters": [
          {
            "in": "path",
            "name": "number",
            "schema": {
              "title": "Number",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicInvoiceEInvoiceSchemaOut"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Read the newest result of the started e-invoice filing of the invoice with this number from the authority, and return the filing. A filing that has no engine job yet stays as it is. DualEntry also reads the result on its own. Call this route when you need the result now. You need the invoice view permission.\n\nThe request fails in these cases:\n\n- The request fails with `404` when the invoice has no filing.\n- The request fails with `503` and `error_code` `e_invoicing_engine` when the e-invoicing engine does not answer.\n- The request fails with `503` and `error_code` `e_invoicing_setup` when the setup of the country is broken.\n- The request fails with `502` and `error_code` `e_invoicing_engine` when the engine refuses the request.\n- The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription.",
        "tags": [
          "E-invoicing"
        ],
        "x-mint": {
          "metadata": {
            "description": "Read the newest result of the started e-invoice filing of the invoice with this number from the authority, and return the filing."
          },
          "content": "A filing that has no engine job yet stays as it is. DualEntry also reads the result on its own. Call this route when you need the result now. You need the invoice view permission.\n\nThe request fails in these cases:\n\n- The request fails with `404` when the invoice has no filing.\n- The request fails with `503` and `error_code` `e_invoicing_engine` when the e-invoicing engine does not answer.\n- The request fails with `503` and `error_code` `e_invoicing_setup` when the setup of the country is broken.\n- The request fails with `502` and `error_code` `e_invoicing_engine` when the engine refuses the request.\n- The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription."
        }
      }
    },
    "/public/v2/e-invoicing/customer-credits/{number}/refresh/": {
      "post": {
        "operationId": "core_api_public_v2_e_invoicing_refresh_customer_credit_e_invoice",
        "summary": "Refresh the credit note filing of a customer credit",
        "parameters": [
          {
            "in": "path",
            "name": "number",
            "schema": {
              "title": "Number",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicEInvoicingFilingSchemaOut"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Read the newest result of the started e-invoice filing of the customer credit with this number from the authority, and return the filing. A filing that has no engine job yet stays as it is. DualEntry also reads the result on its own. Call this route when you need the result now. You need the customer credit view permission.\n\nThe request fails in these cases:\n\n- The request fails with `404` when the customer credit has no filing.\n- The request fails with `503` and `error_code` `e_invoicing_engine` when the e-invoicing engine does not answer.\n- The request fails with `503` and `error_code` `e_invoicing_setup` when the setup of the country is broken.\n- The request fails with `502` and `error_code` `e_invoicing_engine` when the engine refuses the request.\n- The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription.",
        "tags": [
          "E-invoicing"
        ],
        "x-mint": {
          "metadata": {
            "description": "Read the newest result of the started e-invoice filing of the customer credit with this number from the authority, and return the filing."
          },
          "content": "A filing that has no engine job yet stays as it is. DualEntry also reads the result on its own. Call this route when you need the result now. You need the customer credit view permission.\n\nThe request fails in these cases:\n\n- The request fails with `404` when the customer credit has no filing.\n- The request fails with `503` and `error_code` `e_invoicing_engine` when the e-invoicing engine does not answer.\n- The request fails with `503` and `error_code` `e_invoicing_setup` when the setup of the country is broken.\n- The request fails with `502` and `error_code` `e_invoicing_engine` when the engine refuses the request.\n- The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription."
        }
      }
    },
    "/public/v2/e-invoicing/invoices/{number}/files/{attachment_id}/": {
      "get": {
        "operationId": "core_api_public_v2_e_invoicing_get_invoice_e_invoice_file",
        "summary": "Download a legal file of an invoice filing",
        "parameters": [
          {
            "in": "path",
            "name": "number",
            "schema": {
              "title": "Number",
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "attachment_id",
            "schema": {
              "title": "Attachment Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicEInvoicingFileUrlSchemaOut"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Return a short-lived URL that downloads one legal file of the e-invoice filing of the invoice, such as the authority PDF or XML. Read the `attachment_id` from `files` on the filing. You need the invoice view permission.\n\nThe request fails in these cases:\n\n- The request fails with `404` when the invoice has no filing, or when the filing does not hold that file.\n- The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription and DualEntry did not file the invoice.",
        "tags": [
          "E-invoicing"
        ],
        "x-mint": {
          "metadata": {
            "description": "Return a short-lived URL that downloads one legal file of the e-invoice filing of the invoice, such as the authority PDF or XML."
          },
          "content": "Read the `attachment_id` from `files` on the filing. You need the invoice view permission.\n\nThe request fails in these cases:\n\n- The request fails with `404` when the invoice has no filing, or when the filing does not hold that file.\n- The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription and DualEntry did not file the invoice."
        }
      }
    },
    "/public/v2/e-invoicing/customer-credits/{number}/files/{attachment_id}/": {
      "get": {
        "operationId": "core_api_public_v2_e_invoicing_get_customer_credit_e_invoice_file",
        "summary": "Download a legal file of a credit note filing",
        "parameters": [
          {
            "in": "path",
            "name": "number",
            "schema": {
              "title": "Number",
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "attachment_id",
            "schema": {
              "title": "Attachment Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicEInvoicingFileUrlSchemaOut"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Return a short-lived URL that downloads one legal file of the e-invoice filing of the customer credit, such as the authority PDF or XML. Read the `attachment_id` from `files` on the filing. You need the customer credit view permission.\n\nThe request fails in these cases:\n\n- The request fails with `404` when the customer credit has no filing, or when the filing does not hold that file.\n- The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription and DualEntry did not file the customer credit.",
        "tags": [
          "E-invoicing"
        ],
        "x-mint": {
          "metadata": {
            "description": "Return a short-lived URL that downloads one legal file of the e-invoice filing of the customer credit, such as the authority PDF or XML."
          },
          "content": "Read the `attachment_id` from `files` on the filing. You need the customer credit view permission.\n\nThe request fails in these cases:\n\n- The request fails with `404` when the customer credit has no filing, or when the filing does not hold that file.\n- The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription and DualEntry did not file the customer credit."
        }
      }
    },
    "/public/v2/e-invoicing/invoices/{number}/events/": {
      "get": {
        "operationId": "core_api_public_v2_e_invoicing_list_invoice_e_invoice_events",
        "summary": "List the events of an invoice filing",
        "parameters": [
          {
            "in": "path",
            "name": "number",
            "schema": {
              "title": "Number",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicEInvoicingEventSchemaOut"
                  },
                  "title": "Response",
                  "type": "array"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Return the status changes of the e-invoice filing of the invoice, oldest first, up to 100 events. An event whose `event_kind` is `hold` records a hold of a broken setup. The response is an empty list when the invoice has no filing. You need the e-invoicing view permission and the invoice view permission. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription.",
        "tags": [
          "E-invoicing"
        ],
        "x-mint": {
          "metadata": {
            "description": "Return the status changes of the e-invoice filing of the invoice, oldest first, up to 100 events."
          },
          "content": "An event whose `event_kind` is `hold` records a hold of a broken setup. The response is an empty list when the invoice has no filing. You need the e-invoicing view permission and the invoice view permission. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription."
        }
      }
    },
    "/public/v2/e-invoicing/customer-credits/{number}/events/": {
      "get": {
        "operationId": "core_api_public_v2_e_invoicing_list_customer_credit_e_invoice_events",
        "summary": "List the events of a credit note filing",
        "parameters": [
          {
            "in": "path",
            "name": "number",
            "schema": {
              "title": "Number",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicEInvoicingEventSchemaOut"
                  },
                  "title": "Response",
                  "type": "array"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Return the status changes of the e-invoice filing of the customer credit, oldest first, up to 100 events. An event whose `event_kind` is `hold` records a hold of a broken setup. The response is an empty list when the customer credit has no filing. You need the e-invoicing view permission and the customer credit view permission. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription.",
        "tags": [
          "E-invoicing"
        ],
        "x-mint": {
          "metadata": {
            "description": "Return the status changes of the e-invoice filing of the customer credit, oldest first, up to 100 events."
          },
          "content": "An event whose `event_kind` is `hold` records a hold of a broken setup. The response is an empty list when the customer credit has no filing. You need the e-invoicing view permission and the customer credit view permission. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription."
        }
      }
    },
    "/public/v2/e-invoicing/customers/{customer_id}/identifiers/": {
      "get": {
        "operationId": "core_api_public_v2_e_invoicing_list_customer_e_invoicing_identifiers",
        "summary": "Get the e-invoicing identifiers of a customer",
        "parameters": [
          {
            "in": "path",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicEInvoicingPartyIdentifiersSchemaOut"
                  },
                  "title": "Response",
                  "type": "array"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Return one row for each country that holds fields of the customer, then one row for each network. A Peppol participant ID is one value for every Peppol country. You need the e-invoicing view permission and the customer view permission. Read the fields each country lists from `GET /public/v2/e-invoicing/countries/`. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription.",
        "tags": [
          "E-invoicing"
        ],
        "x-mint": {
          "metadata": {
            "description": "Return one row for each country that holds fields of the customer, then one row for each network."
          },
          "content": "A Peppol participant ID is one value for every Peppol country. You need the e-invoicing view permission and the customer view permission. Read the fields each country lists from `GET /public/v2/e-invoicing/countries/`. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription."
        }
      },
      "put": {
        "operationId": "core_api_public_v2_e_invoicing_save_customer_e_invoicing_identifiers",
        "summary": "Set the e-invoicing identifiers of a customer",
        "parameters": [
          {
            "in": "path",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicEInvoicingPartyIdentifiersSchemaOut"
                  },
                  "title": "Response",
                  "type": "array"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Replace the fields of each country or network that the body lists, in one transaction, and return every row. A row that the body leaves out keeps its values. A `peppol_id` in a country row is stored on the Peppol network row. Posting an invoice checks the required identity fields.\n\nYou need the e-invoicing edit permission and the customer edit permission. Read the fields each country lists from `GET /public/v2/e-invoicing/countries/`.\n\nThe request fails in these cases:\n\n- The request fails with `422` and `error_code` `e_invoicing_error` when a field is unknown or a value does not match its pattern, and DualEntry changes nothing.\n- The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription.",
        "tags": [
          "E-invoicing"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicEInvoicingCustomerIdentifiersSchemaIn"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Replace the fields of each country or network that the body lists, in one transaction, and return every row."
          },
          "content": "A row that the body leaves out keeps its values. A `peppol_id` in a country row is stored on the Peppol network row. Posting an invoice checks the required identity fields.\n\nYou need the e-invoicing edit permission and the customer edit permission. Read the fields each country lists from `GET /public/v2/e-invoicing/countries/`.\n\nThe request fails in these cases:\n\n- The request fails with `422` and `error_code` `e_invoicing_error` when a field is unknown or a value does not match its pattern, and DualEntry changes nothing.\n- The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription."
        }
      }
    },
    "/public/v2/e-invoicing/vendors/{vendor_id}/identifiers/": {
      "get": {
        "operationId": "core_api_public_v2_e_invoicing_list_vendor_e_invoicing_identifiers",
        "summary": "Get the e-invoicing identifiers of a vendor",
        "parameters": [
          {
            "in": "path",
            "name": "vendor_id",
            "schema": {
              "title": "Vendor Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PublicEInvoicingPartyIdentifiersSchemaOut"
                  },
                  "title": "Response",
                  "type": "array"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Return one row for each country that holds fields of the vendor. Set them in the DualEntry app. You need the e-invoicing view permission and the vendor view permission. Read the fields each country lists from `GET /public/v2/e-invoicing/countries/`. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription.",
        "tags": [
          "E-invoicing"
        ],
        "x-mint": {
          "metadata": {
            "description": "Return one row for each country that holds fields of the vendor."
          },
          "content": "Set them in the DualEntry app. You need the e-invoicing view permission and the vendor view permission. Read the fields each country lists from `GET /public/v2/e-invoicing/countries/`. The request fails with `402` before it checks the permission, when the organization has no e-invoicing subscription."
        }
      }
    },
    "/public/v2/payment-methods/": {
      "get": {
        "operationId": "core_api_public_v2_payment_methods_list_payment_methods",
        "summary": "List payment methods",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_active",
            "schema": {
              "title": "Is Active",
              "items": {
                "type": "boolean"
              },
              "uniqueItems": true,
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "title": "Name",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "-updated_at",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPaymentMethodSchemaOut"
                }
              }
            }
          }
        },
        "description": "List the payment methods of the organization. Filter by id to resolve the payment_method_id of a record. Inactive and archived payment methods are included.",
        "tags": [
          "Payment Methods"
        ],
        "x-mint": {
          "metadata": {
            "description": "List the payment methods of the organization."
          },
          "content": "Filter by id to resolve the payment_method_id of a record. Inactive and archived payment methods are included."
        }
      }
    },
    "/public/v2/payment-methods/{payment_method_id}/": {
      "get": {
        "operationId": "core_api_public_v2_payment_methods_get_payment_method",
        "summary": "Get payment method",
        "parameters": [
          {
            "in": "path",
            "name": "payment_method_id",
            "schema": {
              "title": "Payment Method Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentMethodSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "tags": [
          "Payment Methods"
        ],
        "x-mint": {
          "metadata": {
            "description": "API reference for Get payment method in the DualEntry API"
          }
        }
      }
    },
    "/public/v2/terms/": {
      "get": {
        "operationId": "core_api_public_v2_terms_list_terms",
        "summary": "List terms",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_active",
            "schema": {
              "title": "Is Active",
              "items": {
                "type": "boolean"
              },
              "uniqueItems": true,
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "title": "Name",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "term_type",
            "schema": {
              "title": "Term Type",
              "items": {
                "$ref": "#/components/schemas/TermType"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "days_until_net_due_min",
            "schema": {
              "title": "Days Until Net Due Min",
              "maximum": 99999,
              "minimum": 0,
              "type": [
                "integer",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "days_until_net_due_max",
            "schema": {
              "title": "Days Until Net Due Max",
              "maximum": 99999,
              "minimum": 0,
              "type": [
                "integer",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedTermSchemaOut"
                }
              }
            }
          }
        },
        "description": "List the payment terms of your organization. Filter by `id` to find the term of a record.",
        "tags": [
          "Terms"
        ]
      }
    },
    "/public/v2/terms/{term_id}/": {
      "get": {
        "operationId": "core_api_public_v2_terms_get_term",
        "summary": "Get term",
        "parameters": [
          {
            "in": "path",
            "name": "term_id",
            "schema": {
              "title": "Term Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TermSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "tags": [
          "Terms"
        ],
        "x-mint": {
          "metadata": {
            "description": "API reference for Get term in the DualEntry API"
          }
        }
      }
    },
    "/public/v2/projects/": {
      "get": {
        "operationId": "core_api_public_v2_projects_list_projects",
        "summary": "List projects",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "title": "Status",
              "items": {
                "$ref": "#/components/schemas/ProjectStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "status_extended",
            "schema": {
              "title": "Status Extended",
              "items": {
                "$ref": "#/components/schemas/ProjectStatusExtended"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "customer_id",
            "schema": {
              "title": "Customer Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "billing_method",
            "schema": {
              "title": "Billing Method",
              "items": {
                "$ref": "#/components/schemas/ProjectBillingMethod"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "billing_type",
            "schema": {
              "title": "Billing Type",
              "items": {
                "$ref": "#/components/schemas/ProjectBillingType"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "project_manager_id",
            "schema": {
              "title": "Project Manager Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date_gte",
            "schema": {
              "title": "Start Date Gte",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date_lte",
            "schema": {
              "title": "Start Date Lte",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date_gte",
            "schema": {
              "title": "End Date Gte",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date_lte",
            "schema": {
              "title": "End Date Lte",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedProjectListSchemaOut"
                }
              }
            }
          }
        },
        "description": "List the projects that you can access. Filter by `id` to find the project of a billable line.",
        "tags": [
          "Projects"
        ]
      }
    },
    "/public/v2/projects/{project_id}/": {
      "get": {
        "operationId": "core_api_public_v2_projects_get_project",
        "summary": "Get project",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "schema": {
              "title": "Project Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "tags": [
          "Projects"
        ],
        "x-mint": {
          "metadata": {
            "description": "API reference for Get project in the DualEntry API"
          }
        }
      }
    },
    "/public/v2/books/": {
      "get": {
        "operationId": "core_api_public_v2_books_list_books",
        "summary": "List books",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "code",
            "schema": {
              "title": "Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_active",
            "schema": {
              "title": "Is Active",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedBookSchemaOut"
                }
              }
            }
          }
        },
        "description": "List the accounting books of your organization. Every organization has one default book.",
        "tags": [
          "Books"
        ]
      }
    },
    "/public/v2/books/{book_id}/": {
      "get": {
        "operationId": "core_api_public_v2_books_get_book",
        "summary": "Get book",
        "parameters": [
          {
            "in": "path",
            "name": "book_id",
            "schema": {
              "title": "Book Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "tags": [
          "Books"
        ],
        "x-mint": {
          "metadata": {
            "description": "API reference for Get book in the DualEntry API"
          }
        }
      }
    },
    "/public/v2/paper-check-templates/": {
      "get": {
        "operationId": "core_api_public_v2_paper_check_templates_list_paper_check_templates",
        "summary": "List paper check templates",
        "parameters": [
          {
            "in": "query",
            "name": "name",
            "schema": {
              "title": "Name",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "title": "Status",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPaperCheckTemplateSchemaOut"
                }
              }
            }
          }
        },
        "description": "List the paper check templates of your organization. Read one template by its `id` with the get route.",
        "tags": [
          "Paper Check Templates"
        ]
      }
    },
    "/public/v2/paper-check-templates/{template_id}/": {
      "get": {
        "operationId": "core_api_public_v2_paper_check_templates_get_paper_check_template",
        "summary": "Get paper check template",
        "parameters": [
          {
            "in": "path",
            "name": "template_id",
            "schema": {
              "title": "Template Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaperCheckTemplateSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "tags": [
          "Paper Check Templates"
        ],
        "x-mint": {
          "metadata": {
            "description": "API reference for Get paper check template in the DualEntry API"
          }
        }
      }
    },
    "/public/v2/contract-templates/": {
      "get": {
        "operationId": "core_api_public_v2_contract_templates_list_contract_templates",
        "summary": "List contract templates",
        "parameters": [
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ContractTemplateStatus"
                },
                {
                  "type": "null"
                }
              ],
              "default": "active",
              "description": "Tab: active or archived"
            },
            "required": false,
            "description": "Tab: active or archived"
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "description": "Filter by name (DB icontains)",
              "title": "Name",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Filter by name (DB icontains)"
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedContractTemplateSchemaOut"
                }
              }
            }
          }
        },
        "description": "List the contract templates that you can access. When you send no `status`, the list returns active templates.",
        "tags": [
          "Contract Templates"
        ]
      }
    },
    "/public/v2/contract-templates/{contract_template_id}/": {
      "get": {
        "operationId": "core_api_public_v2_contract_templates_get_contract_template",
        "summary": "Get contract template",
        "parameters": [
          {
            "in": "path",
            "name": "contract_template_id",
            "schema": {
              "title": "Contract Template Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContractTemplateSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "tags": [
          "Contract Templates"
        ],
        "x-mint": {
          "metadata": {
            "description": "API reference for Get contract template in the DualEntry API"
          }
        }
      }
    },
    "/public/v2/accrual-templates/": {
      "get": {
        "operationId": "core_api_public_v2_accrual_templates_list_accrual_templates",
        "summary": "List accrual templates",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "title": "Name",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "title": "Status",
              "items": {
                "$ref": "#/components/schemas/AccrualTemplateStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedAccrualTemplateSchemaOut"
                }
              }
            }
          }
        },
        "description": "List the accrual templates that you can access. When you send no `status`, the list returns active templates.",
        "tags": [
          "Accrual Templates"
        ]
      }
    },
    "/public/v2/accrual-templates/{accrual_template_id}/": {
      "get": {
        "operationId": "core_api_public_v2_accrual_templates_get_accrual_template",
        "summary": "Get accrual template",
        "parameters": [
          {
            "in": "path",
            "name": "accrual_template_id",
            "schema": {
              "title": "Accrual Template Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccrualTemplateSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "tags": [
          "Accrual Templates"
        ],
        "x-mint": {
          "metadata": {
            "description": "API reference for Get accrual template in the DualEntry API"
          }
        }
      }
    },
    "/public/v2/withholding-tax-rates/": {
      "get": {
        "operationId": "core_api_public_v2_withholding_tax_rates_list_withholding_tax_rates",
        "summary": "List withholding tax rates",
        "parameters": [
          {
            "in": "query",
            "name": "country_code",
            "schema": {
              "title": "Country Code",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "is_active",
            "schema": {
              "title": "Is Active",
              "type": [
                "boolean",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "active_on",
            "schema": {
              "description": "Return only the rates that are valid on this date.",
              "title": "Active On",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false,
            "description": "Return only the rates that are valid on this date."
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicWithholdingTaxRateSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of the withholding tax rates of the organization.\n\nUse the `id` field as `withholding_tax_rate_id` on bill and direct expense lines, and as `default_withholding_tax_rate_id` on a vendor.\n\nFilter by `country_code`, `is_active`, or `active_on` to narrow results.",
        "tags": [
          "Withholding Tax Rates"
        ],
        "x-mint": {
          "metadata": {
            "description": "Retrieve a paginated list of the withholding tax rates of the organization."
          },
          "content": "Use the `id` field as `withholding_tax_rate_id` on bill and direct expense lines, and as `default_withholding_tax_rate_id` on a vendor.\n\nFilter by `country_code`, `is_active`, or `active_on` to narrow results."
        }
      }
    },
    "/public/v2/withholding-tax-rates/{withholding_tax_rate_id}/": {
      "get": {
        "operationId": "core_api_public_v2_withholding_tax_rates_get_withholding_tax_rate",
        "summary": "Get withholding tax rate by ID",
        "parameters": [
          {
            "in": "path",
            "name": "withholding_tax_rate_id",
            "schema": {
              "title": "Withholding Tax Rate Id",
              "type": "integer"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicWithholdingTaxRateSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve one withholding tax rate by its ID, with its country, rate, and validity dates.",
        "tags": [
          "Withholding Tax Rates"
        ]
      }
    },
    "/public/v2/withholding-tax-remittances/": {
      "get": {
        "operationId": "list_WithholdingTaxRemittance_records",
        "summary": "List WithholdingTaxRemittance records",
        "parameters": [
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "tax_agency_id",
            "schema": {
              "title": "Tax Agency Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "liability_account_id",
            "schema": {
              "title": "Liability Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "default": "id",
              "title": "Ordering",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedPublicWithholdingTaxRemittanceListSchemaOut"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a paginated list of WithholdingTaxRemittance records with filtering and ordering options.",
        "tags": [
          "Withholding Tax Remittances"
        ]
      },
      "post": {
        "operationId": "create_WithholdingTaxRemittance_record",
        "summary": "Create WithholdingTaxRemittance record",
        "parameters": [
          {
            "in": "query",
            "name": "apply_default_classifications",
            "schema": {
              "default": true,
              "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled.",
              "title": "Apply Default Classifications",
              "type": "boolean"
            },
            "required": false,
            "description": "When `false`, store submitted line `classifications`, including an empty list. When omitted, organization defaults apply to new lines with omitted or empty classifications only when the organization setting is enabled."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicWithholdingTaxRemittanceSchemaOut"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Create a new WithholdingTaxRemittance record with the provided data. Validates all required fields and business rules.",
        "tags": [
          "Withholding Tax Remittances"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicWithholdingTaxRemittanceSchemaCreateIn"
              }
            }
          },
          "required": true
        }
      }
    },
    "/public/v2/withholding-tax-remittances/{record_number}/": {
      "get": {
        "operationId": "get_WithholdingTaxRemittance_record",
        "summary": "Get WithholdingTaxRemittance record",
        "parameters": [
          {
            "in": "path",
            "name": "record_number",
            "schema": {
              "description": "The `number` attribute of the record.",
              "title": "Record Number",
              "type": "integer"
            },
            "required": true,
            "description": "The `number` attribute of the record."
          },
          {
            "in": "query",
            "name": "search",
            "schema": {
              "title": "Search",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "id",
            "schema": {
              "title": "Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "tax_agency_id",
            "schema": {
              "title": "Tax Agency Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "liability_account_id",
            "schema": {
              "title": "Liability Account Id",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "title": "Start Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "title": "End Date",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "record_status",
            "schema": {
              "title": "Record Status",
              "items": {
                "$ref": "#/components/schemas/RecordStatus"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "number",
            "schema": {
              "title": "Number",
              "items": {
                "type": "integer"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_after",
            "schema": {
              "title": "Updated After",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "updated_before",
            "schema": {
              "title": "Updated Before",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicWithholdingTaxRemittanceSchemaOut"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorSchema"
                }
              }
            }
          }
        },
        "description": "Retrieve a specific WithholdingTaxRemittance record by its record number with all related data.",
        "tags": [
          "Withholding Tax Remittances"
        ]
      }
    },
    "/public/v2/withholding-tax/open-items/": {
      "get": {
        "operationId": "core_api_public_v2_withholding_tax_list_withholding_tax_open_items",
        "summary": "List withheld amounts open for remittance",
        "parameters": [
          {
            "in": "query",
            "name": "company_id",
            "schema": {
              "title": "Company Id",
              "type": "integer"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "liability_account_id",
            "schema": {
              "title": "Liability Account Id",
              "type": [
                "integer",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "tax_agency_id",
            "schema": {
              "title": "Tax Agency Id",
              "type": [
                "integer",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "withholding_tax_rate_id",
            "schema": {
              "title": "Withholding Tax Rate Id",
              "type": [
                "integer",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "date_from",
            "schema": {
              "title": "Date From",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "date_to",
            "schema": {
              "title": "Date To",
              "format": "date",
              "type": [
                "string",
                "null"
              ]
            },
            "required": false
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 100,
              "description": "Number of records to return per page (capped at 100)",
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to return per page (capped at 100)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "default": 0,
              "description": "Number of records to skip before starting to return results",
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            },
            "required": false,
            "description": "Number of records to skip before starting to return results"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedWithholdingTaxOpenItemOut"
                }
              }
            }
          }
        },
        "description": "List the withheld amounts of posted bills, direct expenses, and vendor credits that are on no remittance that is not archived. Amounts are in the company currency, and a vendor credit amount is negative. Send each `withheld_entry_id` as a line of `POST /withholding-tax-remittances/`.",
        "tags": [
          "Withholding Tax Remittances"
        ],
        "x-mint": {
          "metadata": {
            "description": "List the withheld amounts of posted bills, direct expenses, and vendor credits that are on no remittance that is not archived."
          },
          "content": "Amounts are in the company currency, and a vendor credit amount is negative. Send each `withheld_entry_id` as a line of `POST /withholding-tax-remittances/`."
        }
      }
    },
    "/public/v2/oauth/authorize/": {
      "post": {
        "operationId": "core_api_public_oauth_authorize",
        "summary": "Start CLI OAuth flow",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthorizeResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "description": "Start the CLI OAuth flow and obtain the authorization URL where the user grants access.",
        "tags": [
          "OAuth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthorizeRequest"
              }
            }
          },
          "required": true
        }
      }
    },
    "/public/v2/oauth/callback/": {
      "get": {
        "operationId": "core_api_public_oauth_callback",
        "summary": "OAuth callback from WorkOS",
        "parameters": [],
        "responses": {
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "description": "Handle the OAuth callback from WorkOS and complete the CLI authorization flow.",
        "tags": [
          "OAuth"
        ]
      }
    },
    "/public/v2/oauth/token/": {
      "post": {
        "operationId": "core_api_public_oauth_token",
        "summary": "Exchange authorization code for API key",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "description": "Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns `422`."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "description": "Exchange an OAuth authorization code for a DualEntry API key.\n\n**Side effects**\n- If a CLI-generated API key exists for this user in this organization, DualEntry deactivates it, then creates a new CLI API key.",
        "tags": [
          "OAuth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TokenRequest"
              }
            }
          },
          "required": true
        },
        "x-mint": {
          "metadata": {
            "description": "Exchange an OAuth authorization code for a DualEntry API key."
          },
          "content": "**Side effects**\n- If a CLI-generated API key exists for this user in this organization, DualEntry deactivates it, then creates a new CLI API key."
        }
      }
    }
  },
  "components": {
    "schemas": {
      "DynamicInput": {
        "properties": {
          "ordering": {
            "default": "id",
            "title": "Ordering",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "DynamicInput",
        "type": "object"
      },
      "EInvoiceStatusFilter": {
        "enum": [
          "queued",
          "processing",
          "pending_clearance",
          "cleared",
          "rejected",
          "failed",
          "not_filed",
          "needs_attention",
          "none"
        ],
        "title": "EInvoiceStatusFilter",
        "type": "string"
      },
      "Input": {
        "properties": {
          "limit": {
            "default": 100,
            "description": "Number of records to return per page (capped at 100)",
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "offset": {
            "default": 0,
            "description": "Number of records to skip before starting to return results",
            "minimum": 0,
            "title": "Offset",
            "type": "integer"
          }
        },
        "title": "Input",
        "type": "object"
      },
      "IntegrationSourceSlug": {
        "enum": [
          "bill_com",
          "ramp",
          "zoho",
          "fivetran",
          "stripe",
          "hubspot",
          "brex",
          "cubby",
          "avalara",
          "deel",
          "tax1099",
          "sitelink",
          "postgresql",
          "qlik",
          "power_bi",
          "snowflake",
          "avidxchange",
          "concur",
          "salesforce",
          "hmrc",
          "rippling",
          "monday",
          "airwallex",
          "pleo",
          "tipalti",
          "addepar",
          "moss",
          "data_warehouse",
          "anrok",
          "kintsugi",
          "numeral",
          "quickbooks",
          "xero",
          "netsuite_suiteanalytics",
          "sage_intacct",
          "netsuite_rutter",
          "sage_50_rutter",
          "sage_50",
          "qbd",
          "adp_totalsource",
          "adp_workforce_now",
          "justworks",
          "paychex_flex",
          "paycom",
          "gusto",
          "ukg_ready",
          "manual"
        ],
        "type": "string"
      },
      "InvoicePaymentStatus": {
        "enum": [
          "paid",
          "unpaid",
          "partially_paid"
        ],
        "title": "InvoicePaymentStatus",
        "type": "string"
      },
      "PublicInvoiceListFilterSchema": {
        "properties": {
          "integration_sources": {
            "title": "Integration Sources",
            "items": {
              "$ref": "#/components/schemas/IntegrationSourceSlug"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "due_date": {
            "title": "Due Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "due_date_until": {
            "title": "Due Date Until",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_currency": {
            "title": "Transaction Currency",
            "items": {
              "$ref": "#/components/schemas/SystemCurrencies"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "payment_status": {
            "title": "Payment Status",
            "items": {
              "$ref": "#/components/schemas/InvoicePaymentStatus"
            },
            "uniqueItems": true,
            "type": [
              "array",
              "null"
            ]
          },
          "recurring_record_number": {
            "title": "Recurring Record Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status_scope": {
            "title": "Approval Status Scope",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "amount_gte": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Amount Gte"
          },
          "amount_lte": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Amount Lte"
          },
          "amount_due_gte": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Amount Due Gte"
          },
          "amount_due_lte": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Amount Due Lte"
          },
          "amount_due_updated_at_gte": {
            "description": "Return invoices whose `amount_due_updated_at` is greater than or equal to this timestamp.",
            "title": "Amount Due Updated At Gte",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "amount_due_updated_at_lte": {
            "description": "Return invoices whose `amount_due_updated_at` is less than or equal to this timestamp.",
            "title": "Amount Due Updated At Lte",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "e_invoice_status": {
            "description": "Keep the invoices whose e-invoice filing has one of these statuses. `needs_attention` and `none` add to the statuses.",
            "title": "E Invoice Status",
            "items": {
              "$ref": "#/components/schemas/EInvoiceStatusFilter"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicInvoiceListFilterSchema",
        "type": "object"
      },
      "RecordStatus": {
        "enum": [
          "draft",
          "posted",
          "archived"
        ],
        "title": "RecordStatus",
        "type": "string"
      },
      "SystemCurrencies": {
        "enum": [
          "AED",
          "AFN",
          "ALL",
          "AMD",
          "ANG",
          "AOA",
          "ARS",
          "AUD",
          "AWG",
          "AZN",
          "BAM",
          "BBD",
          "BDT",
          "BGN",
          "BHD",
          "BIF",
          "BMD",
          "BND",
          "BOB",
          "BRL",
          "BSD",
          "BTN",
          "BWP",
          "BYN",
          "BZD",
          "CAD",
          "CDF",
          "CHF",
          "CLF",
          "CLP",
          "CNY",
          "COP",
          "CRC",
          "CUP",
          "CVE",
          "CZK",
          "DJF",
          "DKK",
          "DOP",
          "DZD",
          "EGP",
          "ERN",
          "ETB",
          "EUR",
          "FJD",
          "FKP",
          "GBP",
          "GEL",
          "GHS",
          "GIP",
          "GMD",
          "GNF",
          "GTQ",
          "GYD",
          "HKD",
          "HNL",
          "HTG",
          "HUF",
          "IDR",
          "ILS",
          "INR",
          "IQD",
          "IRR",
          "ISK",
          "JMD",
          "JOD",
          "JPY",
          "KES",
          "KGS",
          "KHR",
          "KMF",
          "KPW",
          "KRW",
          "KWD",
          "KYD",
          "KZT",
          "LAK",
          "LBP",
          "LKR",
          "LRD",
          "LSL",
          "LYD",
          "MAD",
          "MDL",
          "MGA",
          "MKD",
          "MMK",
          "MNT",
          "MOP",
          "MRU",
          "MUR",
          "MVR",
          "MWK",
          "MXN",
          "MYR",
          "MZN",
          "NAD",
          "NGN",
          "NIO",
          "NOK",
          "NPR",
          "NZD",
          "OMR",
          "PAB",
          "PEN",
          "PGK",
          "PHP",
          "PKR",
          "PLN",
          "PYG",
          "QAR",
          "RON",
          "RSD",
          "RUB",
          "RWF",
          "SAR",
          "SBD",
          "SCR",
          "SDG",
          "SEK",
          "SGD",
          "SHP",
          "SLL",
          "SOS",
          "SRD",
          "STN",
          "SVC",
          "SYP",
          "SZL",
          "THB",
          "TJS",
          "TMT",
          "TND",
          "TOP",
          "TRY",
          "TTD",
          "TWD",
          "TZS",
          "UAH",
          "UGX",
          "USD",
          "UYU",
          "UZS",
          "VES",
          "VND",
          "VUV",
          "WST",
          "XAF",
          "XAG",
          "XAU",
          "XCD",
          "XDR",
          "XOF",
          "XPD",
          "XPF",
          "XPT",
          "YER",
          "ZAR",
          "ZMW",
          "ZWL"
        ],
        "title": "SystemCurrencies",
        "type": "string"
      },
      "AddressSchemaOut": {
        "properties": {
          "street": {
            "title": "Street",
            "type": "string"
          },
          "city": {
            "title": "City",
            "type": "string"
          },
          "state": {
            "default": "",
            "title": "State",
            "type": "string"
          },
          "postal_code": {
            "title": "Postal Code",
            "type": "string"
          },
          "country": {
            "anyOf": [
              {
                "const": "",
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/SystemCountries"
              }
            ],
            "default": "",
            "title": "Country"
          },
          "second_line": {
            "default": "",
            "title": "Second Line",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "street",
          "city",
          "postal_code"
        ],
        "title": "AddressSchemaOut",
        "type": "object"
      },
      "AppliesToItemSchema": {
        "description": "Schema for individual applies_to items.",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/CustomFieldAppliesToType"
          },
          "layer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Layer"
              }
            ],
            "default": "transaction"
          },
          "is_active": {
            "default": true,
            "title": "Is Active",
            "type": "boolean"
          },
          "is_required": {
            "default": false,
            "title": "Is Required",
            "type": "boolean"
          }
        },
        "required": [
          "type"
        ],
        "title": "AppliesToItemSchema",
        "type": "object"
      },
      "ApproverDictSchema": {
        "description": "Approver info from pre-serialized dict.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "first_name": {
            "title": "First Name",
            "type": "string"
          },
          "last_name": {
            "title": "Last Name",
            "type": "string"
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "full_name": {
            "title": "Full Name",
            "type": "string"
          },
          "avatar_url": {
            "title": "Avatar Url",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "first_name",
          "last_name",
          "email",
          "full_name"
        ],
        "title": "ApproverDictSchema",
        "type": "object"
      },
      "AuditActorSchemaOut": {
        "description": "Schema for audit actor information.",
        "properties": {
          "actor_type": {
            "title": "Actor Type",
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "title": "Email",
            "type": [
              "string",
              "null"
            ]
          },
          "first_name": {
            "title": "First Name",
            "type": [
              "string",
              "null"
            ]
          },
          "last_name": {
            "title": "Last Name",
            "type": [
              "string",
              "null"
            ]
          },
          "via": {
            "title": "Via",
            "type": [
              "string",
              "null"
            ]
          },
          "agent_id": {
            "title": "Agent Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "agent_name": {
            "title": "Agent Name",
            "type": [
              "string",
              "null"
            ]
          },
          "timestamp": {
            "title": "Timestamp",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "AuditActorSchemaOut",
        "type": "object"
      },
      "BlockedReason": {
        "description": "Why the setup of a country holds a filing or a registration. The row waits and is sent after the fix.",
        "enum": [
          "workspace_missing",
          "workspace_rejected",
          "workflow_missing",
          "configuration"
        ],
        "title": "BlockedReason",
        "type": "string"
      },
      "CustomFieldAppliesToType": {
        "description": "Record types a custom field can apply to. Stored in DB as plain text; no Django choices.",
        "enum": [
          "invoice",
          "bill",
          "direct_expense",
          "journal_entry",
          "intercompany_journal_entry",
          "vendor_prepayment",
          "vendor_credit",
          "vendor_payment",
          "vendor_refund",
          "customer_payment",
          "customer_prepayment",
          "customer_refund",
          "customer_deposit",
          "currency_revaluation",
          "contract",
          "fixed_asset",
          "customer",
          "vendor",
          "account",
          "company",
          "sales_order",
          "purchase_order",
          "cash_sale",
          "customer_credit",
          "quote"
        ],
        "title": "CustomFieldAppliesToType",
        "type": "string"
      },
      "CustomFieldSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_ids": {
            "title": "Company Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": [
              "string",
              "null"
            ]
          },
          "helper_text": {
            "title": "Helper Text",
            "type": [
              "string",
              "null"
            ]
          },
          "field_type": {
            "$ref": "#/components/schemas/FieldType"
          },
          "applies_to": {
            "items": {
              "$ref": "#/components/schemas/AppliesToItemSchema"
            },
            "title": "Applies To",
            "type": "array"
          },
          "default_value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Value"
          },
          "options": {
            "title": "Options",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "helper_text",
          "field_type",
          "applies_to",
          "options",
          "is_active"
        ],
        "title": "CustomFieldSchemaOut",
        "type": "object"
      },
      "CustomFieldValuePairOutputSchema": {
        "properties": {
          "field": {
            "$ref": "#/components/schemas/CustomFieldSchemaOut"
          },
          "value": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomFieldValueSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "field"
        ],
        "title": "CustomFieldValuePairOutputSchema",
        "type": "object"
      },
      "CustomFieldValueSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "custom_field_id": {
            "title": "Custom Field Id",
            "type": "integer"
          },
          "custom_field_name": {
            "title": "Custom Field Name",
            "type": "string"
          },
          "custom_field_type": {
            "title": "Custom Field Type",
            "type": "string"
          },
          "custom_field_value_id": {
            "title": "Custom Field Value Id",
            "type": "integer"
          },
          "value": {
            "title": "Value"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "custom_field_id",
          "custom_field_name",
          "custom_field_type",
          "custom_field_value_id",
          "value",
          "created_at",
          "updated_at"
        ],
        "title": "CustomFieldValueSchemaOut",
        "type": "object"
      },
      "DiscountType": {
        "enum": [
          "PERCENTAGE",
          "FIXED"
        ],
        "title": "DiscountType",
        "type": "string"
      },
      "ExternalIntegrationSourceOut": {
        "properties": {
          "integration_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IntegrationProviderType"
              },
              {
                "$ref": "#/components/schemas/MigrationProviderType"
              },
              {
                "type": "string"
              }
            ],
            "title": "Integration Type"
          },
          "external_integration_url": {
            "title": "External Integration Url",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "integration_type",
          "external_integration_url"
        ],
        "title": "ExternalIntegrationSourceOut",
        "type": "object"
      },
      "FieldType": {
        "enum": [
          "text",
          "number",
          "currency",
          "date",
          "boolean",
          "single_select",
          "multi_select",
          "link",
          "paragraph"
        ],
        "title": "FieldType",
        "type": "string"
      },
      "FilingLifecycle": {
        "description": "What a cleared filing means in its country. The client words the cleared status from it.",
        "enum": [
          "authority_clearance",
          "ordered_records",
          "network_delivery"
        ],
        "title": "FilingLifecycle",
        "type": "string"
      },
      "FilingStatus": {
        "enum": [
          "queued",
          "processing",
          "pending_clearance",
          "cleared",
          "rejected",
          "failed",
          "not_filed"
        ],
        "title": "FilingStatus",
        "type": "string"
      },
      "GstComponentType": {
        "enum": [
          "CGST",
          "SGST",
          "IGST",
          "CESS",
          "GST",
          "PST",
          "HST",
          "QST"
        ],
        "title": "GstComponentType",
        "type": "string"
      },
      "GstSupplyCategory": {
        "description": "India GST: intra-state (CGST+SGST) vs inter-state (IGST).",
        "enum": [
          "INTRA_STATE",
          "INTER_STATE"
        ],
        "title": "GstSupplyCategory",
        "type": "string"
      },
      "IntegrationProviderSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "integration_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IntegrationProviderType"
              },
              {
                "type": "string"
              }
            ],
            "title": "Integration Type"
          },
          "logo_url": {
            "title": "Logo Url",
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "title": "Website",
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "title": "Description",
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "title": "Category",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "integration_type"
        ],
        "title": "IntegrationProviderSchemaOut",
        "type": "object"
      },
      "IntegrationProviderType": {
        "enum": [
          "bill_com",
          "ramp",
          "zoho",
          "fivetran",
          "stripe",
          "finch",
          "hubspot",
          "brex",
          "cubby",
          "avalara",
          "deel",
          "tax1099",
          "sitelink",
          "postgresql",
          "qlik",
          "power_bi",
          "snowflake",
          "avidxchange",
          "concur",
          "salesforce",
          "hmrc",
          "rippling",
          "monday",
          "airwallex",
          "pleo",
          "tipalti",
          "addepar",
          "moss",
          "data_warehouse",
          "external",
          "anrok",
          "kintsugi",
          "numeral"
        ],
        "title": "IntegrationProviderType",
        "type": "string"
      },
      "IntegrationRemoteRecordSchemaOut": {
        "properties": {
          "transactional_date": {
            "title": "Transactional Date",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "external_source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExternalIntegrationSourceOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "source_id": {
            "title": "Source Id",
            "type": "string"
          },
          "connection_id": {
            "title": "Connection Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "integration_id": {
            "title": "Integration Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "integration_name": {
            "title": "Integration Name",
            "type": [
              "string",
              "null"
            ]
          },
          "integration_provider": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IntegrationProviderSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "title": "Url",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "source_id"
        ],
        "title": "IntegrationRemoteRecordSchemaOut",
        "type": "object"
      },
      "ItemTaxDataOut": {
        "properties": {
          "code": {
            "title": "Code",
            "type": "string"
          },
          "rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Rate",
            "type": "string"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "is_taxable": {
            "title": "Is Taxable",
            "type": [
              "boolean",
              "null"
            ]
          },
          "tax_exempt_amount": {
            "title": "Tax Exempt Amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "vat_rate_id": {
            "title": "Vat Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "gst_tax_rate_id": {
            "title": "Gst Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "tax_metadata": {
            "title": "Tax Metadata",
            "additionalProperties": true,
            "type": [
              "object",
              "null"
            ]
          },
          "tax_components": {
            "title": "Tax Components",
            "items": {
              "$ref": "#/components/schemas/TaxComponentSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "amount_with_tax": {
            "title": "Amount With Tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "rate_name": {
            "title": "Rate Name",
            "type": [
              "string",
              "null"
            ]
          },
          "rate_description": {
            "title": "Rate Description",
            "type": [
              "string",
              "null"
            ]
          },
          "rate_type": {
            "title": "Rate Type",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_treatment": {
            "title": "Tax Treatment",
            "type": [
              "string",
              "null"
            ]
          },
          "valid_to": {
            "title": "Valid To",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "code",
          "rate",
          "amount"
        ],
        "title": "ItemTaxDataOut",
        "type": "object"
      },
      "Layer": {
        "enum": [
          "transaction",
          "entry"
        ],
        "title": "Layer",
        "type": "string"
      },
      "MigrationProviderType": {
        "enum": [
          "quickbooks",
          "xero",
          "stripe",
          "netsuite_rutter",
          "sage_50_rutter",
          "sage_50",
          "qbd"
        ],
        "title": "MigrationProviderType",
        "type": "string"
      },
      "PagedPublicInvoiceListSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicInvoiceListSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicInvoiceListSchemaOut",
        "type": "object"
      },
      "PaymentSchemaOut": {
        "description": "Schema for payment collection configuration output.",
        "properties": {
          "type": {
            "title": "Type",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "body": {
            "title": "Body",
            "type": [
              "string",
              "null"
            ]
          },
          "link": {
            "title": "Link",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PaymentSchemaOut",
        "type": "object"
      },
      "PublicAttachmentSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "file_name": {
            "title": "File Name",
            "type": "string"
          },
          "file_size": {
            "title": "File Size",
            "type": "integer"
          },
          "download_url": {
            "title": "Download Url",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "file_name",
          "file_size"
        ],
        "title": "PublicAttachmentSchemaOut",
        "type": "object"
      },
      "PublicEInvoiceSummarySchemaOut": {
        "description": "The e-invoice filing of a record. Read the full filing from the e-invoicing routes.",
        "properties": {
          "filing_id": {
            "title": "Filing Id",
            "type": "integer"
          },
          "status": {
            "$ref": "#/components/schemas/FilingStatus"
          },
          "country": {
            "$ref": "#/components/schemas/SystemCountries"
          },
          "authority_reference": {
            "description": "The ID that the agency or the network gave the document: the SAT UUID, the CAE or the SDI ID, or the Peppol message ID of a Peppol delivery. A Peppol message ID proves the delivery, not a verdict of the receiver. Null until the filing is cleared, so a filing that waits after a retry does not show the ID of the earlier attempt. Null when the engine gave no ID.",
            "title": "Authority Reference",
            "type": [
              "string",
              "null"
            ]
          },
          "lifecycle": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilingLifecycle"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a cleared filing means: `network_delivery` reached the inbox of the receiver, the others are confirmed by the authority."
          },
          "send_held": {
            "description": "True while the authority must clear the e-invoice before the customer gets it.",
            "title": "Send Held",
            "type": "boolean"
          },
          "send_held_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendHeldReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the customer cannot get the record yet. Null when `send_held` is false."
          },
          "blocked_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BlockedReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Set while a broken setup of the filing country holds the filing."
          },
          "needs_attention": {
            "description": "True when the filing waits for a user: it failed, the authority rejected it, it was not filed, or a setup holds it.",
            "title": "Needs Attention",
            "type": "boolean"
          }
        },
        "required": [
          "filing_id",
          "status",
          "country",
          "send_held",
          "needs_attention"
        ],
        "title": "PublicEInvoiceSummarySchemaOut",
        "type": "object"
      },
      "PublicInvoiceItemOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "account_id": {
            "title": "Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "item_type": {
            "title": "Item Type",
            "type": [
              "string",
              "null"
            ]
          },
          "hsn_sac_code": {
            "title": "Hsn Sac Code",
            "type": [
              "string",
              "null"
            ]
          },
          "discount_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DiscountType"
              },
              {
                "type": "null"
              }
            ]
          },
          "discount_value": {
            "title": "Discount Value",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "discount_account_id": {
            "title": "Discount Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_level_discount_amount": {
            "title": "Record Level Discount Amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxDataOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "item_id": {
            "title": "Item Id",
            "type": "integer"
          },
          "quantity": {
            "description": "Quantity billed on this line. Quantity must be greater than or equal to `0`. You can use up to 6 decimal places.",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity",
            "type": "string"
          },
          "rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,10}0*$",
            "title": "Rate",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "company_id": {
            "description": "Optional company for this line. If this company differs from the record `company_id`, DualEntry posts intercompany Due To/From and elimination entries. Omit this field, or set it equal to the header `company_id`, for a single-company line.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "net_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Net Amount",
            "type": "string"
          },
          "tax_amount": {
            "description": "Calculated tax amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Tax Amount",
            "type": "string"
          },
          "gross_amount": {
            "description": "Calculated total amount including tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Gross Amount",
            "type": "string"
          },
          "amount": {
            "description": "Calculated total amount including tax named amount for backward compatibility",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Amount",
            "type": "string"
          },
          "discount_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Discount Amount",
            "type": "string"
          }
        },
        "required": [
          "id",
          "item_id",
          "quantity",
          "rate",
          "position",
          "memo",
          "net_amount",
          "tax_amount",
          "gross_amount",
          "amount",
          "discount_amount"
        ],
        "title": "PublicInvoiceItemOut",
        "type": "object"
      },
      "PublicInvoiceListSchemaOut": {
        "properties": {
          "bill_to_address": {
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": "string"
          },
          "ship_to_address": {
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": "string"
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "supply_date": {
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxContextOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "integration_remote_records": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/IntegrationRemoteRecordSchemaOut"
            },
            "title": "Integration Remote Records",
            "type": "array"
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "payment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PaymentSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "term_name": {
            "title": "Term Name",
            "type": "string"
          },
          "transaction_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Transaction Ids",
            "type": "array"
          },
          "bank_match_status": {
            "title": "Bank Match Status",
            "type": [
              "string",
              "null"
            ]
          },
          "reconciliation_status": {
            "title": "Reconciliation Status",
            "type": [
              "string",
              "null"
            ]
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "type": [
              "string",
              "null"
            ]
          },
          "next_approvers": {
            "title": "Next Approvers",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rejected_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectedBySchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicInvoiceItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "sales_order_number": {
            "description": "The `number` of the linked sales order.",
            "title": "Sales Order Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "amount": {
            "description": "Total amount of transaction",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "amount_due": {
            "description": "Amount to be paid",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount Due",
            "type": "string"
          },
          "paid_total": {
            "description": "Amount that was already paid by Customer Repayment Applications or Customer Payments",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Paid Total",
            "type": "string"
          },
          "amount_due_updated_at": {
            "description": "Timestamp of the most recent change that could have affected `amount_due`. Moves whenever the invoice itself is edited, or whenever a posted Customer Payment or Customer Prepayment Application referencing this invoice is written. ",
            "format": "date-time",
            "title": "Amount Due Updated At",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "date": {
            "description": "Posting date (GL date) - the date when the transaction is recorded in the general ledger",
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "description": "Transaction date (inception date) - the date when the transaction actually occurred",
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "due_date": {
            "title": "Due Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "recurring_record_number": {
            "title": "Recurring Record Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "contracted": {
            "title": "Contracted",
            "type": "boolean"
          },
          "contract_id": {
            "title": "Contract Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "ar_account_id": {
            "title": "Ar Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "discount_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DiscountType"
              },
              {
                "type": "null"
              }
            ]
          },
          "discount_value": {
            "title": "Discount Value",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "reference_number": {
            "title": "Reference Number",
            "type": "string"
          },
          "e_invoice": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PublicEInvoiceSummarySchemaOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The e-invoice filing of the record. Null when DualEntry did not file it. Not in v1."
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "bill_to_address",
          "ship_to_address",
          "supply_date",
          "tax",
          "term_id",
          "term_name",
          "transaction_ids",
          "internal_id",
          "number",
          "items",
          "company_id",
          "company_name",
          "company_currency",
          "customer_id",
          "currency_iso_4217_code",
          "exchange_rate",
          "amount",
          "amount_due",
          "paid_total",
          "amount_due_updated_at",
          "memo",
          "date",
          "transaction_date",
          "due_date",
          "record_status",
          "recurring_record_number",
          "contracted",
          "ar_account_id",
          "discount_type",
          "discount_value",
          "reference_number",
          "created_at",
          "updated_at"
        ],
        "title": "PublicInvoiceListSchemaOut",
        "type": "object"
      },
      "RecordClassificationsSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "line_id": {
            "title": "Line Id",
            "type": "integer"
          },
          "line_name": {
            "title": "Line Name",
            "type": "string"
          },
          "parent_classification_id": {
            "title": "Parent Classification Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "parent_classification_line_id": {
            "title": "Parent Classification Line Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "line_id",
          "line_name"
        ],
        "title": "RecordClassificationsSchemaOut",
        "type": "object"
      },
      "RecordGstDataOut": {
        "properties": {
          "country": {
            "description": "ISO-2 country code of the GST regime (IN, AU, NZ, SG, CA).",
            "title": "Country",
            "type": [
              "string",
              "null"
            ]
          },
          "supply_category": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GstSupplyCategory"
              },
              {
                "type": "null"
              }
            ],
            "description": "India only (today): INTRA_STATE (CGST+SGST) vs INTER_STATE (IGST). Null for AU/NZ/SG/CA."
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "supply_date": {
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ],
            "description": "Snapshot of all relevant tax registration numbers for both parties."
          }
        },
        "title": "RecordGstDataOut",
        "type": "object"
      },
      "RecordNoneTaxDataOut": {
        "properties": {},
        "title": "RecordNoneTaxDataOut",
        "type": "object"
      },
      "RecordSalesTaxDataOut": {
        "description": "Reserved for future sales tax fields (e.g. nexus origin).",
        "properties": {},
        "title": "RecordSalesTaxDataOut",
        "type": "object"
      },
      "RecordTaxContextOut": {
        "description": "Base for record-level tax context; `regime` discriminates `data`.\n\nMirrors `TaxResultV2Out` (core.taxes.api.taxes)",
        "properties": {
          "regime": {
            "$ref": "#/components/schemas/TaxResultType"
          },
          "data": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordSalesTaxDataOut"
              },
              {
                "$ref": "#/components/schemas/RecordVatDataOut"
              },
              {
                "$ref": "#/components/schemas/RecordGstDataOut"
              },
              {
                "$ref": "#/components/schemas/RecordNoneTaxDataOut"
              }
            ],
            "title": "Data"
          }
        },
        "required": [
          "regime",
          "data"
        ],
        "title": "RecordTaxContextOut",
        "type": "object"
      },
      "RecordTaxMetadata": {
        "additionalProperties": {
          "additionalProperties": true,
          "type": "object"
        },
        "type": "object"
      },
      "RecordVatDataOut": {
        "properties": {
          "country": {
            "description": "ISO-2 country code that owns the VAT regime for this record (GB, DE, ...).",
            "title": "Country",
            "type": [
              "string",
              "null"
            ]
          },
          "supply_date": {
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ],
            "description": "Snapshot of all relevant tax registration numbers for both parties."
          }
        },
        "title": "RecordVatDataOut",
        "type": "object"
      },
      "RejectedBySchema": {
        "description": "Schema for rejector information including rejection reason.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "first_name": {
            "title": "First Name",
            "type": "string"
          },
          "last_name": {
            "title": "Last Name",
            "type": "string"
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "full_name": {
            "title": "Full Name",
            "type": "string"
          },
          "rejection_reason": {
            "title": "Rejection Reason",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "first_name",
          "last_name",
          "email",
          "full_name",
          "rejection_reason"
        ],
        "title": "RejectedBySchema",
        "type": "object"
      },
      "SendHeldReason": {
        "description": "Why the customer cannot get a filed record yet. The client translates the code.",
        "enum": [
          "awaiting_clearance",
          "waiting_for_setup",
          "filing_failed",
          "filing_rejected"
        ],
        "title": "SendHeldReason",
        "type": "string"
      },
      "SystemCountries": {
        "enum": [
          "AA",
          "AB",
          "AC",
          "AD",
          "AE",
          "AF",
          "AG",
          "AH",
          "AI",
          "AJ",
          "AK",
          "AL",
          "AM",
          "AN",
          "AO",
          "AP",
          "AQ",
          "AR",
          "AS",
          "AT",
          "AU",
          "AV",
          "AW",
          "AX",
          "AY",
          "AZ",
          "BA",
          "BB",
          "BC",
          "BD",
          "BE",
          "BF",
          "BG",
          "BH",
          "BI",
          "BJ",
          "BK",
          "BL",
          "BM",
          "BN",
          "BO",
          "BP",
          "BQ",
          "BR",
          "BS",
          "BT",
          "BU",
          "BV",
          "BW",
          "BX",
          "BY",
          "BZ",
          "CA",
          "CB",
          "CC",
          "CD",
          "CE",
          "CF",
          "CG",
          "CH",
          "CI",
          "CJ",
          "CK",
          "CL",
          "CM",
          "CN",
          "CO",
          "CP",
          "CQ",
          "CR",
          "CS",
          "CT",
          "CU",
          "CV",
          "CW",
          "CX",
          "CY",
          "CZ",
          "DA",
          "DB",
          "DC",
          "DD",
          "DE",
          "DF",
          "DG",
          "DH",
          "DI",
          "DJ",
          "DK",
          "DL",
          "DM",
          "DN",
          "DO",
          "DP",
          "DQ",
          "DR",
          "DS",
          "DT",
          "DU",
          "DV",
          "DW",
          "DX",
          "DY",
          "DZ",
          "EA",
          "EB",
          "EC",
          "ED",
          "EE",
          "EF",
          "EG",
          "EH",
          "EI",
          "EJ",
          "EK",
          "EL",
          "EM",
          "EN",
          "EO",
          "EP",
          "EQ",
          "ER",
          "ES",
          "ET",
          "EU",
          "EV",
          "EW",
          "EX",
          "EY",
          "EZ",
          "FA",
          "FB",
          "FC",
          "FD",
          "FE",
          "FF",
          "FG",
          "FH",
          "FI",
          "FJ",
          "FK",
          "FL",
          "FM",
          "FN",
          "FO",
          "FP",
          "FQ",
          "FR",
          "FS",
          "FT",
          "FU",
          "FV",
          "FW",
          "FX",
          "FY",
          "FZ",
          "GA",
          "GB",
          "GC",
          "GD",
          "GE",
          "GF",
          "GG",
          "GH",
          "GI",
          "GJ",
          "GK",
          "GL",
          "GM",
          "GN",
          "GO",
          "GP",
          "GQ",
          "GR",
          "GS",
          "GT",
          "GU",
          "GV",
          "GW",
          "GX",
          "GY",
          "GZ",
          "HA",
          "HB",
          "HC",
          "HD",
          "HE",
          "HF",
          "HG",
          "HH",
          "HI",
          "HJ",
          "HK",
          "HL",
          "HM",
          "HN",
          "HO",
          "HP",
          "HQ",
          "HR",
          "HS",
          "HT",
          "HU",
          "HV",
          "HW",
          "HX",
          "HY",
          "HZ",
          "IA",
          "IB",
          "IC",
          "ID",
          "IE",
          "IF",
          "IG",
          "IH",
          "II",
          "IJ",
          "IK",
          "IL",
          "IM",
          "IN",
          "IO",
          "IP",
          "IQ",
          "IR",
          "IS",
          "IT",
          "IU",
          "IV",
          "IW",
          "IX",
          "IY",
          "IZ",
          "JA",
          "JB",
          "JC",
          "JD",
          "JE",
          "JF",
          "JG",
          "JH",
          "JI",
          "JJ",
          "JK",
          "JL",
          "JM",
          "JN",
          "JO",
          "JP",
          "JQ",
          "JR",
          "JS",
          "JT",
          "JU",
          "JV",
          "JW",
          "JX",
          "JY",
          "JZ",
          "KA",
          "KB",
          "KC",
          "KD",
          "KE",
          "KF",
          "KG",
          "KH",
          "KI",
          "KJ",
          "KK",
          "KL",
          "KM",
          "KN",
          "KO",
          "KP",
          "KQ",
          "KR",
          "KS",
          "KT",
          "KU",
          "KV",
          "KW",
          "KX",
          "KY",
          "KZ",
          "LA",
          "LB",
          "LC",
          "LD",
          "LE",
          "LF",
          "LG",
          "LH",
          "LI",
          "LJ",
          "LK",
          "LL",
          "LM",
          "LN",
          "LO",
          "LP",
          "LQ",
          "LR",
          "LS",
          "LT",
          "LU",
          "LV",
          "LW",
          "LX",
          "LY",
          "LZ",
          "MA",
          "MB",
          "MC",
          "MD",
          "ME",
          "MF",
          "MG",
          "MH",
          "MI",
          "MJ",
          "MK",
          "ML",
          "MM",
          "MN",
          "MO",
          "MP",
          "MQ",
          "MR",
          "MS",
          "MT",
          "MU",
          "MV",
          "MW",
          "MX",
          "MY",
          "MZ",
          "NA",
          "NB",
          "NC",
          "ND",
          "NE",
          "NF",
          "NG",
          "NH",
          "NI",
          "NJ",
          "NK",
          "NL",
          "NM",
          "NN",
          "NO",
          "NP",
          "NQ",
          "NR",
          "NS",
          "NT",
          "NU",
          "NV",
          "NW",
          "NX",
          "NY",
          "NZ",
          "OA",
          "OB",
          "OC",
          "OD",
          "OE",
          "OF",
          "OG",
          "OH",
          "OI",
          "OJ",
          "OK",
          "OL",
          "OM",
          "ON",
          "OO",
          "OP",
          "OQ",
          "OR",
          "OS",
          "OT",
          "OU",
          "OV",
          "OW",
          "OX",
          "OY",
          "OZ",
          "PA",
          "PB",
          "PC",
          "PD",
          "PE",
          "PF",
          "PG",
          "PH",
          "PI",
          "PJ",
          "PK",
          "PL",
          "PM",
          "PN",
          "PO",
          "PP",
          "PQ",
          "PR",
          "PS",
          "PT",
          "PU",
          "PV",
          "PW",
          "PX",
          "PY",
          "PZ",
          "QA",
          "QB",
          "QC",
          "QD",
          "QE",
          "QF",
          "QG",
          "QH",
          "QI",
          "QJ",
          "QK",
          "QL",
          "QM",
          "QN",
          "QO",
          "QP",
          "QQ",
          "QR",
          "QS",
          "QT",
          "QU",
          "QV",
          "QW",
          "QX",
          "QY",
          "QZ",
          "RA",
          "RB",
          "RC",
          "RD",
          "RE",
          "RF",
          "RG",
          "RH",
          "RI",
          "RJ",
          "RK",
          "RL",
          "RM",
          "RN",
          "RO",
          "RP",
          "RQ",
          "RR",
          "RS",
          "RT",
          "RU",
          "RV",
          "RW",
          "RX",
          "RY",
          "RZ",
          "SA",
          "SB",
          "SC",
          "SD",
          "SE",
          "SF",
          "SG",
          "SH",
          "SI",
          "SJ",
          "SK",
          "SL",
          "SM",
          "SN",
          "SO",
          "SP",
          "SQ",
          "SR",
          "SS",
          "ST",
          "SU",
          "SV",
          "SW",
          "SX",
          "SY",
          "SZ",
          "TA",
          "TB",
          "TC",
          "TD",
          "TE",
          "TF",
          "TG",
          "TH",
          "TI",
          "TJ",
          "TK",
          "TL",
          "TM",
          "TN",
          "TO",
          "TP",
          "TQ",
          "TR",
          "TS",
          "TT",
          "TU",
          "TV",
          "TW",
          "TX",
          "TY",
          "TZ",
          "UA",
          "UB",
          "UC",
          "UD",
          "UE",
          "UF",
          "UG",
          "UH",
          "UI",
          "UJ",
          "UK",
          "UL",
          "UM",
          "UN",
          "UO",
          "UP",
          "UQ",
          "UR",
          "US",
          "UT",
          "UU",
          "UV",
          "UW",
          "UX",
          "UY",
          "UZ",
          "VA",
          "VB",
          "VC",
          "VD",
          "VE",
          "VF",
          "VG",
          "VH",
          "VI",
          "VJ",
          "VK",
          "VL",
          "VM",
          "VN",
          "VO",
          "VP",
          "VQ",
          "VR",
          "VS",
          "VT",
          "VU",
          "VV",
          "VW",
          "VX",
          "VY",
          "VZ",
          "WA",
          "WB",
          "WC",
          "WD",
          "WE",
          "WF",
          "WG",
          "WH",
          "WI",
          "WJ",
          "WK",
          "WL",
          "WM",
          "WN",
          "WO",
          "WP",
          "WQ",
          "WR",
          "WS",
          "WT",
          "WU",
          "WV",
          "WW",
          "WX",
          "WY",
          "WZ",
          "XA",
          "XB",
          "XC",
          "XD",
          "XE",
          "XF",
          "XG",
          "XH",
          "XI",
          "XJ",
          "XK",
          "XL",
          "XM",
          "XN",
          "XO",
          "XP",
          "XQ",
          "XR",
          "XS",
          "XT",
          "XU",
          "XV",
          "XW",
          "XX",
          "XY",
          "XZ",
          "YA",
          "YB",
          "YC",
          "YD",
          "YE",
          "YF",
          "YG",
          "YH",
          "YI",
          "YJ",
          "YK",
          "YL",
          "YM",
          "YN",
          "YO",
          "YP",
          "YQ",
          "YR",
          "YS",
          "YT",
          "YU",
          "YV",
          "YW",
          "YX",
          "YY",
          "YZ",
          "ZA",
          "ZB",
          "ZC",
          "ZD",
          "ZE",
          "ZF",
          "ZG",
          "ZH",
          "ZI",
          "ZJ",
          "ZK",
          "ZL",
          "ZM",
          "ZN",
          "ZO",
          "ZP",
          "ZQ",
          "ZR",
          "ZS",
          "ZT",
          "ZU",
          "ZV",
          "ZW",
          "ZX",
          "ZY",
          "ZZ"
        ],
        "title": "SystemCountries",
        "type": "string"
      },
      "TaxComponentSchema": {
        "description": "Per-component consumption tax breakdown stored on line items.",
        "properties": {
          "component_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GstComponentType"
              },
              {
                "$ref": "#/components/schemas/TaxFamily"
              }
            ],
            "title": "Component Type"
          },
          "rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Rate",
            "type": "string"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "region": {
            "title": "Region",
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "title": "Position",
            "type": "integer"
          }
        },
        "required": [
          "component_type",
          "rate",
          "amount",
          "position"
        ],
        "title": "TaxComponentSchema",
        "type": "object"
      },
      "TaxFamily": {
        "description": "Broad classification of a tax rate within the GST module.\n\n`GST` covers the single-stage value-added-style regimes (AU, NZ, SG, IN, CA).\n`SST` covers Malaysia's Sales and Service Tax \u2014 a non-creditable single-stage\nregime that replaced Malaysia's GST in 2018. SST actually has two sub-regimes\n(Sales Tax on goods, Service Tax on services) but they share registration\nformat (ANN-YYMM-NNNNNNNN, self-identifying by prefix), calculation rules, and\nadministration \u2014 so we don't split them at the family level. The rate's\n``name`` (\"Sales Tax 10%\", \"Service Tax 8%\") carries that human distinction.",
        "enum": [
          "GST",
          "SST"
        ],
        "title": "TaxFamily",
        "type": "string"
      },
      "TaxRegistrationNumberEntry": {
        "properties": {
          "type": {
            "description": "Registration type (e.g. SST_SALES, SST_SERVICE, GST, GSTIN, PST, QST).",
            "title": "Type",
            "type": "string"
          },
          "number": {
            "description": "Frozen-at-snapshot registration number.",
            "title": "Number",
            "type": "string"
          },
          "region": {
            "description": "2-letter region code for region-scoped registrations (e.g. Canadian PST/QST provinces); null for country-wide registrations.",
            "title": "Region",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "type",
          "number"
        ],
        "title": "TaxRegistrationNumberEntry",
        "type": "object"
      },
      "TaxRegistrationNumbersSnapshot": {
        "properties": {
          "company": {
            "items": {
              "$ref": "#/components/schemas/TaxRegistrationNumberEntry"
            },
            "title": "Company",
            "type": "array"
          },
          "counterparty": {
            "items": {
              "$ref": "#/components/schemas/TaxRegistrationNumberEntry"
            },
            "title": "Counterparty",
            "type": "array"
          }
        },
        "title": "TaxRegistrationNumbersSnapshot",
        "type": "object"
      },
      "TaxResultType": {
        "enum": [
          "SALES_TAX",
          "VAT",
          "GST",
          "NONE"
        ],
        "title": "TaxResultType",
        "type": "string"
      },
      "ErrorSchema": {
        "properties": {
          "success": {
            "const": false,
            "default": false,
            "title": "Success",
            "type": "boolean"
          },
          "errors": {
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "title": "Errors",
            "type": "object"
          },
          "error_code": {
            "description": "A stable code that identifies the control that refused the request. Branch on this code, not on the message text. When a control refuses the request, `error_code` is one of these values:\n- `period_locked`: The request changes data in a locked accounting period.\n- `approved_record_immutable`: The record is approved, and the organization does not allow changes to approved records.\n- `posted_record_immutable`: The record is posted, and the organization does not allow changes to posted records.\n- `adjusting_entry_permission_required`: You do not have the permission to post adjusting entries.\n- `adjusting_entries_disabled`: Adjusting entries are not enabled for the company.\n- `adjusting_entry_bank_account`: An adjusting entry cannot use a bank or credit card account.\n- `recurring_adjusting_entry`: A recurring journal entry cannot be an adjusting entry.\n- `segregation_of_duties_no_substitute_approver`: The approval policy needs an approver other than the creator, and the organization has no other admin.\n- `posting_date_after_limit`: The organization limits how far in the future a record can be posted.\n- `independent_transaction_dates_disabled`: The organization does not allow transaction_date to differ from date. Enable Separate posting and transaction dates in organization settings.\n- `tax_not_calculated`: The organization uses manual tax mode with the tax reminder on. A posted record needs calculated tax.\n- `recurring_template_archived_party`: A recurring template cannot use an archived customer or vendor.\n- `master_data_unavailable`: The request sets a reference that the app does not offer for this record. It is inactive, archived, a draft, not available to the record's company, in another currency, or the party for the record's own company.",
            "title": "Error Code",
            "type": [
              "string",
              "null"
            ]
          },
          "error_reason": {
            "title": "Error Reason",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "errors"
        ],
        "title": "ErrorSchema",
        "type": "object"
      },
      "PublicInvoiceSchemaOut": {
        "properties": {
          "bill_to_address": {
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": "string"
          },
          "ship_to_address": {
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": "string"
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "supply_date": {
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxContextOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "integration_remote_records": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/IntegrationRemoteRecordSchemaOut"
            },
            "title": "Integration Remote Records",
            "type": "array"
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "payment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PaymentSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "term_name": {
            "title": "Term Name",
            "type": "string"
          },
          "transaction_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Transaction Ids",
            "type": "array"
          },
          "bank_match_status": {
            "title": "Bank Match Status",
            "type": [
              "string",
              "null"
            ]
          },
          "reconciliation_status": {
            "title": "Reconciliation Status",
            "type": [
              "string",
              "null"
            ]
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "type": [
              "string",
              "null"
            ]
          },
          "next_approvers": {
            "title": "Next Approvers",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rejected_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectedBySchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicInvoiceItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "sales_order_number": {
            "description": "The `number` of the linked sales order.",
            "title": "Sales Order Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "amount": {
            "description": "Total amount of transaction",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "amount_due": {
            "description": "Amount to be paid",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount Due",
            "type": "string"
          },
          "paid_total": {
            "description": "Amount that was already paid by Customer Repayment Applications or Customer Payments",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Paid Total",
            "type": "string"
          },
          "amount_due_updated_at": {
            "description": "Timestamp of the most recent change that could have affected `amount_due`. Moves whenever the invoice itself is edited, or whenever a posted Customer Payment or Customer Prepayment Application referencing this invoice is written. ",
            "format": "date-time",
            "title": "Amount Due Updated At",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "date": {
            "description": "Posting date (GL date) - the date when the transaction is recorded in the general ledger",
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "description": "Transaction date (inception date) - the date when the transaction actually occurred",
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "due_date": {
            "title": "Due Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "recurring_record_number": {
            "title": "Recurring Record Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "contracted": {
            "title": "Contracted",
            "type": "boolean"
          },
          "contract_id": {
            "title": "Contract Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "ar_account_id": {
            "title": "Ar Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "discount_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DiscountType"
              },
              {
                "type": "null"
              }
            ]
          },
          "discount_value": {
            "title": "Discount Value",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "reference_number": {
            "title": "Reference Number",
            "type": "string"
          },
          "tax_total": {
            "description": "Sum of line-item tax amounts, net of discount-line tax.",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Tax Total",
            "type": "string"
          },
          "e_invoice": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PublicEInvoiceSummarySchemaOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The e-invoice filing of the record. Null when DualEntry did not file it. Not in v1."
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "bill_to_address",
          "ship_to_address",
          "supply_date",
          "tax",
          "term_id",
          "term_name",
          "transaction_ids",
          "internal_id",
          "number",
          "items",
          "company_id",
          "company_name",
          "company_currency",
          "customer_id",
          "currency_iso_4217_code",
          "exchange_rate",
          "amount",
          "amount_due",
          "paid_total",
          "amount_due_updated_at",
          "memo",
          "date",
          "transaction_date",
          "due_date",
          "record_status",
          "recurring_record_number",
          "contracted",
          "ar_account_id",
          "discount_type",
          "discount_value",
          "reference_number",
          "tax_total",
          "created_at",
          "updated_at"
        ],
        "title": "PublicInvoiceSchemaOut",
        "type": "object"
      },
      "AddressSchemaIn": {
        "properties": {
          "street": {
            "title": "Street",
            "type": "string"
          },
          "city": {
            "title": "City",
            "type": "string"
          },
          "state": {
            "default": "",
            "title": "State",
            "type": "string"
          },
          "postal_code": {
            "title": "Postal Code",
            "type": "string"
          },
          "country": {
            "anyOf": [
              {
                "const": "",
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/SystemCountries"
              }
            ],
            "default": "",
            "title": "Country"
          },
          "second_line": {
            "default": "",
            "title": "Second Line",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "street",
          "city",
          "postal_code"
        ],
        "title": "AddressSchemaIn",
        "type": "object"
      },
      "AttachmentSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "file_name": {
            "title": "File Name",
            "type": "string"
          },
          "file_size": {
            "title": "File Size",
            "type": "integer"
          },
          "download_url": {
            "title": "Download Url",
            "type": [
              "string",
              "null"
            ]
          },
          "upload_url": {
            "title": "Upload Url",
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "default": "default",
            "title": "Category",
            "type": "string"
          }
        },
        "required": [
          "id",
          "file_name",
          "file_size"
        ],
        "title": "AttachmentSchemaOut",
        "type": "object"
      },
      "AutoCalculateTaxMode": {
        "enum": [
          "required"
        ],
        "title": "AutoCalculateTaxMode",
        "type": "string"
      },
      "ItemTaxData": {
        "properties": {
          "code": {
            "title": "Code",
            "type": "string"
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "title": "Rate"
          },
          "amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "is_taxable": {
            "title": "Is Taxable",
            "type": [
              "boolean",
              "null"
            ]
          },
          "tax_exempt_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tax Exempt Amount"
          },
          "vat_rate_id": {
            "title": "Vat Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "gst_tax_rate_id": {
            "title": "Gst Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "tax_metadata": {
            "title": "Tax Metadata",
            "additionalProperties": true,
            "type": [
              "object",
              "null"
            ]
          }
        },
        "required": [
          "code",
          "rate",
          "amount"
        ],
        "title": "ItemTaxData",
        "type": "object"
      },
      "PaymentSchemaIn": {
        "description": "Schema for payment collection configuration input (matches frontend structure).",
        "properties": {
          "type": {
            "title": "Type",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "body": {
            "title": "Body",
            "type": [
              "string",
              "null"
            ]
          },
          "link": {
            "title": "Link",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PaymentSchemaIn",
        "type": "object"
      },
      "PublicInvoiceItemIn": {
        "properties": {
          "discount_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DiscountType"
              },
              {
                "type": "null"
              }
            ]
          },
          "discount_value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Discount Value"
          },
          "discount_account_id": {
            "title": "Discount Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_level_discount_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Record Level Discount Amount"
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxData"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "item_id": {
            "title": "Item Id",
            "type": "integer"
          },
          "quantity": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "description": "Quantity billed on this line. Quantity must be greater than or equal to `0`. You can use up to 6 decimal places.",
            "title": "Quantity"
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,10}0*$",
                "type": "string"
              }
            ],
            "title": "Rate"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "company_id": {
            "description": "Optional company for this line. If this company differs from the record `company_id`, DualEntry posts intercompany Due To/From and elimination entries. Omit this field, or set it equal to the header `company_id`, for a single-company line.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "item_id",
          "quantity",
          "rate",
          "position",
          "memo"
        ],
        "title": "PublicInvoiceItemIn",
        "type": "object"
      },
      "PublicInvoiceSchemaCreateIn": {
        "properties": {
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "bill_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "ship_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "discount_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DiscountType"
              },
              {
                "type": "null"
              }
            ]
          },
          "discount_value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Discount Value"
          },
          "auto_calculate_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoCalculateTaxMode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Configures how to handle automatic tax calculations.\n\nIf `auto_calculate_tax` is unset, the tax you send on each line is stored. Set it to `required` to have DualEntry calculate the tax, replacing the tax on every line before it saves the record.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST.\n\n- For native VAT and GST, leave this field unset and send the rate and the tax on each line. Set it to `required` when a tax provider returns the tax.\n- The request fails with `422` when the result is DualEntry's own VAT or GST, when the calculation cannot finish, or when a required address is still missing.\n- When the record has a customer, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer.\n- If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n- When the record has a vendor, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company.\n- DualEntry stores only the ship addresses you sent."
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "due_date": {
            "title": "Due Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "customer_id": {
            "description": "If this customer is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "If omitted or null, calculated from the company base currency, invoice currency, and date.",
            "title": "Exchange Rate"
          },
          "items": {
            "title": "Items",
            "items": {
              "$ref": "#/components/schemas/PublicInvoiceItemIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "sales_order_id": {
            "title": "Sales Order Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "contracted": {
            "default": false,
            "title": "Contracted",
            "type": "boolean"
          },
          "contract_id": {
            "title": "Contract Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "reference_number": {
            "default": "",
            "title": "Reference Number",
            "type": "string"
          },
          "ar_account_id": {
            "title": "Ar Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "payment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PaymentSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "date",
          "company_id"
        ],
        "title": "PublicInvoiceSchemaCreateIn",
        "type": "object"
      },
      "PublicInvoiceSchemaUpdateIn": {
        "properties": {
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "bill_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "ship_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "discount_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DiscountType"
              },
              {
                "type": "null"
              }
            ]
          },
          "discount_value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Discount Value"
          },
          "auto_calculate_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoCalculateTaxMode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Configures how to handle automatic tax calculations.\n\nIf `auto_calculate_tax` is unset, the tax you send on each line is stored. Set it to `required` to have DualEntry calculate the tax, replacing the tax on every line before it saves the record.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST.\n\n- For native VAT and GST, leave this field unset and send the rate and the tax on each line. Set it to `required` when a tax provider returns the tax.\n- The request fails with `422` when the result is DualEntry's own VAT or GST, when the calculation cannot finish, or when a required address is still missing.\n- When the record has a customer, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer.\n- If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n- When the record has a vendor, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company.\n- DualEntry stores only the ship addresses you sent."
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "due_date": {
            "title": "Due Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "customer_id": {
            "description": "If this customer is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "If omitted or null, calculated from the company base currency, invoice currency, and date.",
            "title": "Exchange Rate"
          },
          "items": {
            "title": "Items",
            "items": {
              "$ref": "#/components/schemas/PublicInvoiceItemIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "sales_order_id": {
            "title": "Sales Order Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "contracted": {
            "default": false,
            "title": "Contracted",
            "type": "boolean"
          },
          "contract_id": {
            "title": "Contract Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "reference_number": {
            "default": "",
            "title": "Reference Number",
            "type": "string"
          },
          "ar_account_id": {
            "title": "Ar Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "payment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PaymentSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "date",
          "company_id"
        ],
        "title": "PublicInvoiceSchemaUpdateIn",
        "type": "object"
      },
      "PublicInvoiceSchemaPatchIn": {
        "description": "Partial update payload for `PATCH /public/invoices/{number}/`.\n\nEvery field is optional: send only the fields you want to change.\nUnset fields are left untouched on the existing record.\n\nUpdates allowed under the same constraints as `PUT`: period locks,\npayment-applied restrictions, and approval-workflow rules apply.",
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "auto_calculate_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoCalculateTaxMode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Configures how to handle automatic tax calculations.\n\nIf `auto_calculate_tax` is unset, the tax you send on each line is stored. Set it to `required` to have DualEntry calculate the tax, replacing the tax on every line before it saves the record.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST.\n\n- For native VAT and GST, leave this field unset and send the rate and the tax on each line. Set it to `required` when a tax provider returns the tax.\n- The request fails with `422` when the result is DualEntry's own VAT or GST, when the calculation cannot finish, or when a required address is still missing.\n- When the record has a customer, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer.\n- If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n- When the record has a vendor, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company.\n- DualEntry stores only the ship addresses you sent."
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "due_date": {
            "title": "Due Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "description": "If this customer is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exchange Rate"
          },
          "items": {
            "title": "Items",
            "items": {
              "$ref": "#/components/schemas/PublicInvoiceItemIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "bill_to_address": {
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_to_address": {
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "sales_order_id": {
            "title": "Sales Order Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachments": {
            "title": "Attachments",
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "contracted": {
            "default": false,
            "title": "Contracted",
            "type": "boolean"
          },
          "contract_id": {
            "title": "Contract Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "reference_number": {
            "default": "",
            "title": "Reference Number",
            "type": "string"
          },
          "ar_account_id": {
            "title": "Ar Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "payment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PaymentSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "date": {
            "title": "Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "discount_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DiscountType"
              },
              {
                "type": "null"
              }
            ]
          },
          "discount_value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Discount Value"
          }
        },
        "title": "PublicInvoiceSchemaPatchIn",
        "type": "object"
      },
      "PagedPublicInvoiceItemOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicInvoiceItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicInvoiceItemOut",
        "type": "object"
      },
      "SuccessSchema": {
        "properties": {
          "success": {
            "const": true,
            "default": true,
            "title": "Success",
            "type": "boolean"
          },
          "errors": {
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "title": "Errors",
            "type": "object"
          },
          "message": {
            "title": "Message",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "SuccessSchema",
        "type": "object"
      },
      "PublicInvoiceSendSchemaIn": {
        "properties": {
          "to_emails": {
            "items": {
              "type": "string"
            },
            "title": "To Emails",
            "type": "array"
          },
          "cc_emails": {
            "items": {
              "type": "string"
            },
            "title": "Cc Emails",
            "type": "array"
          },
          "bcc_emails": {
            "items": {
              "type": "string"
            },
            "title": "Bcc Emails",
            "type": "array"
          },
          "message": {
            "title": "Message",
            "type": [
              "string",
              "null"
            ]
          },
          "subject": {
            "title": "Subject",
            "type": [
              "string",
              "null"
            ]
          },
          "sandbox": {
            "title": "Sandbox",
            "type": [
              "boolean",
              "null"
            ]
          },
          "invoice_id": {
            "title": "Invoice Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "title": "PublicInvoiceSendSchemaIn",
        "type": "object"
      },
      "PublicSalesOrderListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "invoiced_status": {
            "title": "Invoiced Status",
            "items": {
              "$ref": "#/components/schemas/SalesOrderInvoicedStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status_scope": {
            "title": "Approval Status Scope",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicSalesOrderListFilterSchema",
        "type": "object"
      },
      "SalesOrderInvoicedStatus": {
        "enum": [
          "invoiced",
          "uninvoiced",
          "partially_invoiced"
        ],
        "title": "SalesOrderInvoicedStatus",
        "type": "string"
      },
      "PagedPublicSalesOrderSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicSalesOrderSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicSalesOrderSchemaOut",
        "type": "object"
      },
      "PublicSalesOrderItemOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "item_type": {
            "title": "Item Type",
            "type": [
              "string",
              "null"
            ]
          },
          "hsn_sac_code": {
            "title": "Hsn Sac Code",
            "type": [
              "string",
              "null"
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxDataOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "item_id": {
            "title": "Item Id",
            "type": "integer"
          },
          "quantity": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity",
            "type": "string"
          },
          "rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Rate",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "quantity_invoiced": {
            "description": "Quantity of items that already have corresponding Invoice",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity Invoiced",
            "type": "string"
          },
          "quantity_due": {
            "description": "Quantity of items yet to be invoiced",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity Due",
            "type": "string"
          },
          "net_amount": {
            "description": "Net amount before tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Net Amount",
            "type": "string"
          },
          "tax_amount": {
            "description": "Calculated tax amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Tax Amount",
            "type": "string"
          },
          "gross_amount": {
            "description": "Calculated total amount including tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Gross Amount",
            "type": "string"
          },
          "amount": {
            "description": "Calculated total amount including tax named amount for backward compatibility",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Amount",
            "type": "string"
          }
        },
        "required": [
          "id",
          "item_id",
          "quantity",
          "rate",
          "position",
          "memo",
          "quantity_invoiced",
          "quantity_due",
          "net_amount",
          "tax_amount",
          "gross_amount",
          "amount"
        ],
        "title": "PublicSalesOrderItemOut",
        "type": "object"
      },
      "PublicSalesOrderSchemaOut": {
        "properties": {
          "bill_to_address": {
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": "string"
          },
          "ship_to_address": {
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": "string"
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "invoiced_status": {
            "$ref": "#/components/schemas/SalesOrderInvoicedStatus"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "term_name": {
            "title": "Term Name",
            "type": "string"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "type": [
              "string",
              "null"
            ]
          },
          "next_approvers": {
            "title": "Next Approvers",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rejected_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectedBySchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicSalesOrderItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": "integer"
          },
          "customer_name": {
            "title": "Customer Name",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "amount": {
            "description": "Total amount of ordered items",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "invoiced_total": {
            "description": "Total quantity of items that were already invoiced",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Invoiced Total",
            "type": "string"
          },
          "due_total": {
            "description": "Total quantity of items yet to be invoiced",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Due Total",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "recurring_record_number": {
            "title": "Recurring Record Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "reference_number": {
            "title": "Reference Number",
            "type": "string"
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "bill_to_address",
          "ship_to_address",
          "invoiced_status",
          "term_id",
          "term_name",
          "internal_id",
          "number",
          "items",
          "company_id",
          "company_name",
          "company_currency",
          "customer_id",
          "customer_name",
          "currency_iso_4217_code",
          "exchange_rate",
          "amount",
          "invoiced_total",
          "due_total",
          "memo",
          "date",
          "record_status",
          "reference_number",
          "created_at",
          "updated_at"
        ],
        "title": "PublicSalesOrderSchemaOut",
        "type": "object"
      },
      "PublicSalesOrderItemIn": {
        "properties": {
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxData"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "item_id": {
            "title": "Item Id",
            "type": "integer"
          },
          "quantity": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "title": "Quantity"
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "title": "Rate"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          }
        },
        "required": [
          "item_id",
          "quantity",
          "rate",
          "position",
          "memo"
        ],
        "title": "PublicSalesOrderItemIn",
        "type": "object"
      },
      "PublicSalesOrderSchemaCreateIn": {
        "properties": {
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "bill_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "ship_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "auto_calculate_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoCalculateTaxMode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Configures how to handle automatic tax calculations.\n\nIf `auto_calculate_tax` is unset, the tax you send on each line is stored. Set it to `required` to have DualEntry calculate the tax, replacing the tax on every line before it saves the record.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST.\n\n- For native VAT and GST, leave this field unset and send the rate and the tax on each line. Set it to `required` when a tax provider returns the tax.\n- The request fails with `422` when the result is DualEntry's own VAT or GST, when the calculation cannot finish, or when a required address is still missing.\n- When the record has a customer, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer.\n- If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n- When the record has a vendor, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company.\n- DualEntry stores only the ship addresses you sent."
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicSalesOrderItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "reference_number": {
            "default": "",
            "title": "Reference Number",
            "type": "string"
          }
        },
        "required": [
          "memo",
          "date",
          "company_id",
          "customer_id",
          "currency_iso_4217_code",
          "exchange_rate",
          "items"
        ],
        "title": "PublicSalesOrderSchemaCreateIn",
        "type": "object"
      },
      "PublicSalesOrderSchemaUpdateIn": {
        "properties": {
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "bill_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "ship_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "auto_calculate_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoCalculateTaxMode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Configures how to handle automatic tax calculations.\n\nIf `auto_calculate_tax` is unset, the tax you send on each line is stored. Set it to `required` to have DualEntry calculate the tax, replacing the tax on every line before it saves the record.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST.\n\n- For native VAT and GST, leave this field unset and send the rate and the tax on each line. Set it to `required` when a tax provider returns the tax.\n- The request fails with `422` when the result is DualEntry's own VAT or GST, when the calculation cannot finish, or when a required address is still missing.\n- When the record has a customer, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer.\n- If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n- When the record has a vendor, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company.\n- DualEntry stores only the ship addresses you sent."
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicSalesOrderItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "reference_number": {
            "default": "",
            "title": "Reference Number",
            "type": "string"
          }
        },
        "required": [
          "memo",
          "date",
          "company_id",
          "customer_id",
          "currency_iso_4217_code",
          "exchange_rate",
          "items"
        ],
        "title": "PublicSalesOrderSchemaUpdateIn",
        "type": "object"
      },
      "PagedPublicSalesOrderItemOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicSalesOrderItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicSalesOrderItemOut",
        "type": "object"
      },
      "PublicBillListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "ap_account_id": {
            "description": "Return bills posted to any of these AP account IDs.",
            "title": "Ap Account Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "due_date": {
            "title": "Due Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status_scope": {
            "title": "Approval Status Scope",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicBillListFilterSchema",
        "type": "object"
      },
      "AmortizableAssetRefOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "AmortizableAssetRefOut",
        "type": "object"
      },
      "FixedAssetRefOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "FixedAssetRefOut",
        "type": "object"
      },
      "LineWithholdingTaxSchemaOut": {
        "properties": {
          "rate_id": {
            "title": "Rate Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "rate": {
            "examples": [
              "0.100000"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Rate",
            "type": "string"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          }
        },
        "required": [
          "rate_id",
          "name",
          "rate",
          "amount"
        ],
        "title": "LineWithholdingTaxSchemaOut",
        "type": "object"
      },
      "PagedPublicBillSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicBillSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicBillSchemaOut",
        "type": "object"
      },
      "PublicBillExpenseOut": {
        "properties": {
          "withholding_tax_rate_id": {
            "description": "ID of the withholding tax rate of the line, or `null` when the line has no withholding tax.",
            "title": "Withholding Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxDataOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_billable": {
            "default": false,
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_id": {
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_markup_pct": {
            "title": "Billable Markup Pct",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "special_tax_treatment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpecialTaxTreatment"
              },
              {
                "type": "null"
              }
            ],
            "description": "Identifies an expense line whose full amount is import VAT."
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Rate",
            "type": "string"
          },
          "quantity": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity",
            "type": "string"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "expense_description": {
            "title": "Expense Description",
            "type": "string"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_id": {
            "description": "Optional company for this line. If this company differs from the record `company_id`, DualEntry posts intercompany Due To/From and elimination entries. Omit this field, or set it equal to the header `company_id`, for a single-company line.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "amortizable_assets": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AmortizableAssetRefOut"
            },
            "title": "Amortizable Assets",
            "type": "array"
          },
          "fixed_assets": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/FixedAssetRefOut"
            },
            "title": "Fixed Assets",
            "type": "array"
          },
          "withholding_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LineWithholdingTaxSchemaOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The withholding tax of the line, or `null` when the line has none. `amount` is the withheld amount in the record currency."
          },
          "payable_amount": {
            "description": "Line amount minus the withheld amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Payable Amount",
            "type": "string"
          },
          "billable_customer_name": {
            "title": "Billable Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_project_name": {
            "title": "Billable Project Name",
            "type": [
              "string",
              "null"
            ]
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": [
              "string",
              "null"
            ]
          },
          "net_amount": {
            "description": "Net amount before tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Net Amount",
            "type": "string"
          },
          "tax_amount": {
            "description": "Calculated tax amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Tax Amount",
            "type": "string"
          },
          "gross_amount": {
            "description": "Calculated total amount including tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Gross Amount",
            "type": "string"
          },
          "amount": {
            "description": "Calculated total amount including tax named amount for backward compatibility",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Amount",
            "type": "string"
          }
        },
        "required": [
          "id",
          "position",
          "rate",
          "quantity",
          "account_number",
          "expense_description",
          "payable_amount",
          "net_amount",
          "tax_amount",
          "gross_amount",
          "amount"
        ],
        "title": "PublicBillExpenseOut",
        "type": "object"
      },
      "PublicBillItemOut": {
        "properties": {
          "withholding_tax_rate_id": {
            "description": "ID of the withholding tax rate of the line, or `null` when the line has no withholding tax.",
            "title": "Withholding Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxDataOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_billable": {
            "default": false,
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_id": {
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_markup_pct": {
            "title": "Billable Markup Pct",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "item_id": {
            "title": "Item Id",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Rate",
            "type": "string"
          },
          "quantity": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity",
            "type": "string"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "company_id": {
            "description": "Optional company for this line. If this company differs from the record `company_id`, DualEntry posts intercompany Due To/From and elimination entries. Omit this field, or set it equal to the header `company_id`, for a single-company line.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "item_type": {
            "title": "Item Type",
            "type": [
              "string",
              "null"
            ]
          },
          "hsn_sac_code": {
            "title": "Hsn Sac Code",
            "type": [
              "string",
              "null"
            ]
          },
          "amortizable_assets": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AmortizableAssetRefOut"
            },
            "title": "Amortizable Assets",
            "type": "array"
          },
          "fixed_assets": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/FixedAssetRefOut"
            },
            "title": "Fixed Assets",
            "type": "array"
          },
          "withholding_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LineWithholdingTaxSchemaOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The withholding tax of the line, or `null` when the line has none. `amount` is the withheld amount in the record currency."
          },
          "payable_amount": {
            "description": "Line amount minus the withheld amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Payable Amount",
            "type": "string"
          },
          "billable_customer_name": {
            "title": "Billable Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_project_name": {
            "title": "Billable Project Name",
            "type": [
              "string",
              "null"
            ]
          },
          "net_amount": {
            "description": "Net amount before tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Net Amount",
            "type": "string"
          },
          "tax_amount": {
            "description": "Calculated tax amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Tax Amount",
            "type": "string"
          },
          "gross_amount": {
            "description": "Calculated total amount including tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Gross Amount",
            "type": "string"
          },
          "amount": {
            "description": "Calculated total amount including tax named amount for backward compatibility",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Amount",
            "type": "string"
          }
        },
        "required": [
          "id",
          "position",
          "item_id",
          "memo",
          "rate",
          "quantity",
          "payable_amount",
          "net_amount",
          "tax_amount",
          "gross_amount",
          "amount"
        ],
        "title": "PublicBillItemOut",
        "type": "object"
      },
      "PublicBillSchemaOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "withholding_tax_total": {
            "default": "0.00",
            "description": "Sum of the withheld amounts of the lines",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Withholding Tax Total",
            "type": "string"
          },
          "withholding_tax_payable_account_id": {
            "description": "ID of the liability account for the withheld amounts of the record.",
            "title": "Withholding Tax Payable Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "ship_from_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_to_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "supply_date": {
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxContextOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "transaction_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Transaction Ids",
            "type": "array"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "term_name": {
            "title": "Term Name",
            "type": "string"
          },
          "bank_match_status": {
            "title": "Bank Match Status",
            "type": [
              "string",
              "null"
            ]
          },
          "reconciliation_status": {
            "title": "Reconciliation Status",
            "type": [
              "string",
              "null"
            ]
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "type": [
              "string",
              "null"
            ]
          },
          "next_approvers": {
            "title": "Next Approvers",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rejected_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectedBySchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "date": {
            "description": "Posting date (GL date) - the date when the transaction is recorded in the general ledger",
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "description": "Transaction date (inception date) - the date when the transaction actually occurred",
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "due_date": {
            "format": "date",
            "title": "Due Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": "integer"
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": "string"
          },
          "ap_account_id": {
            "title": "Ap Account Id",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "amount": {
            "description": "Total amount of transaction",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "amount_due": {
            "description": "Amount to be paid",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount Due",
            "type": "string"
          },
          "paid_total": {
            "description": "Amount that was already paid by Vendor Prepayment Applications or Vendor Payments",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Paid Total",
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicBillItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "expenses": {
            "items": {
              "$ref": "#/components/schemas/PublicBillExpenseOut"
            },
            "title": "Expenses",
            "type": "array"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "recurring_record_number": {
            "title": "Recurring Record Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "purchase_order_number": {
            "title": "Purchase Order Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "reference_number": {
            "title": "Reference Number",
            "type": "string"
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "supply_date",
          "tax",
          "transaction_ids",
          "term_id",
          "term_name",
          "internal_id",
          "number",
          "date",
          "transaction_date",
          "due_date",
          "company_id",
          "company_name",
          "company_currency",
          "vendor_id",
          "vendor_name",
          "ap_account_id",
          "currency_iso_4217_code",
          "exchange_rate",
          "memo",
          "amount",
          "amount_due",
          "paid_total",
          "items",
          "expenses",
          "record_status",
          "recurring_record_number",
          "purchase_order_number",
          "reference_number",
          "created_at",
          "updated_at"
        ],
        "title": "PublicBillSchemaOut",
        "type": "object"
      },
      "SpecialTaxTreatment": {
        "enum": [
          "IMPORT_VAT"
        ],
        "title": "SpecialTaxTreatment",
        "type": "string"
      },
      "PublicBillExpenseIn": {
        "properties": {
          "withholding_tax_rate_id": {
            "description": "ID of the withholding tax rate of the line, from `GET /withholding-tax-rates/`. The withheld amount is the line net amount times the rate. On an update, a line that omits this field keeps its stored rate, and `null` removes the withholding tax.",
            "title": "Withholding Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxData"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_billable": {
            "default": false,
            "description": "When `true`, this line is billable to a customer. Requires `billable_customer_id`.",
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "description": "Customer to rebill for this line. Required when `is_billable` is `true`. Distinct from `customer_id` on expense lines.",
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_id": {
            "description": "Optional project for the billable line. When set with `billable_customer_id`, the project must belong to that customer.",
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_markup_pct": {
            "anyOf": [
              {
                "maximum": 1000.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional markup percent for the billable line (0-1000).",
            "title": "Billable Markup Pct"
          },
          "special_tax_treatment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpecialTaxTreatment"
              },
              {
                "type": "null"
              }
            ],
            "description": "Identifies an expense line whose full amount is import VAT."
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "title": "Rate"
          },
          "quantity": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "title": "Quantity"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "expense_description": {
            "title": "Expense Description",
            "type": "string"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_id": {
            "description": "Optional company for this line. If this company differs from the record `company_id`, DualEntry posts intercompany Due To/From and elimination entries. Omit this field, or set it equal to the header `company_id`, for a single-company line.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "position",
          "rate",
          "quantity",
          "account_number",
          "expense_description"
        ],
        "title": "PublicBillExpenseIn",
        "type": "object"
      },
      "PublicBillItemIn": {
        "properties": {
          "withholding_tax_rate_id": {
            "description": "ID of the withholding tax rate of the line, from `GET /withholding-tax-rates/`. The withheld amount is the line net amount times the rate. On an update, a line that omits this field keeps its stored rate, and `null` removes the withholding tax.",
            "title": "Withholding Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxData"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_billable": {
            "default": false,
            "description": "When `true`, this line is billable to a customer. Requires `billable_customer_id`.",
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "description": "Customer to rebill for this line. Required when `is_billable` is `true`. Distinct from `customer_id` on expense lines.",
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_id": {
            "description": "Optional project for the billable line. When set with `billable_customer_id`, the project must belong to that customer.",
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_markup_pct": {
            "anyOf": [
              {
                "maximum": 1000.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional markup percent for the billable line (0-1000).",
            "title": "Billable Markup Pct"
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "item_id": {
            "title": "Item Id",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "title": "Rate"
          },
          "quantity": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "title": "Quantity"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "company_id": {
            "description": "Optional company for this line. If this company differs from the record `company_id`, DualEntry posts intercompany Due To/From and elimination entries. Omit this field, or set it equal to the header `company_id`, for a single-company line.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "position",
          "item_id",
          "memo",
          "rate",
          "quantity"
        ],
        "title": "PublicBillItemIn",
        "type": "object"
      },
      "PublicBillSchemaCreateIn": {
        "properties": {
          "withholding_tax_payable_account_id": {
            "description": "ID of the liability account for the withheld amounts. When you send `null`, or omit the field on create, DualEntry uses the `default_withholding_tax_payable_account_id` of the vendor. A record with withholding tax needs one of the two. On an update, an omitted value keeps the stored account.",
            "title": "Withholding Tax Payable Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "ship_from_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_to_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "auto_calculate_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoCalculateTaxMode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Configures how to handle automatic tax calculations.\n\nIf `auto_calculate_tax` is unset, the tax you send on each line is stored. Set it to `required` to have DualEntry calculate the tax, replacing the tax on every line before it saves the record.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST.\n\n- For native VAT and GST, leave this field unset and send the rate and the tax on each line. Set it to `required` when a tax provider returns the tax.\n- The request fails with `422` when the result is DualEntry's own VAT or GST, when the calculation cannot finish, or when a required address is still missing.\n- When the record has a customer, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer.\n- If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n- When the record has a vendor, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company.\n- DualEntry stores only the ship addresses you sent."
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "vendor_id": {
            "description": "If this vendor is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Vendor Id",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exchange Rate"
          },
          "memo": {
            "title": "Memo",
            "maxLength": 512,
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "title": "Items",
            "items": {
              "$ref": "#/components/schemas/PublicBillItemIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "expenses": {
            "title": "Expenses",
            "items": {
              "$ref": "#/components/schemas/PublicBillExpenseIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "due_date": {
            "title": "Due Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "reference_number": {
            "default": "",
            "title": "Reference Number",
            "type": "string"
          },
          "purchase_order_number": {
            "title": "Purchase Order Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "ap_account_id": {
            "description": "ID of the AP account. The default is the intercompany AP account on an intercompany bill. On other bills, it is the vendor default, then the company default, then the system AP account. The account must be active, belong to the bill company or to no company, and be accounts payable, credit card, or other current liability.\n\nAn update without this field keeps the stored account, unless it changes the vendor or the company. On v3, or with the public API breaking changes, a `PUT` without this field uses the default. Send `null` to use the default.",
            "title": "Ap Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "vendor_id"
        ],
        "title": "PublicBillSchemaCreateIn",
        "type": "object"
      },
      "PublicBillSchemaUpdateIn": {
        "properties": {
          "withholding_tax_payable_account_id": {
            "description": "ID of the liability account for the withheld amounts. When you send `null`, or omit the field on create, DualEntry uses the `default_withholding_tax_payable_account_id` of the vendor. A record with withholding tax needs one of the two. On an update, an omitted value keeps the stored account.",
            "title": "Withholding Tax Payable Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "ship_from_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_to_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "auto_calculate_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoCalculateTaxMode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Configures how to handle automatic tax calculations.\n\nIf `auto_calculate_tax` is unset, the tax you send on each line is stored. Set it to `required` to have DualEntry calculate the tax, replacing the tax on every line before it saves the record.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST.\n\n- For native VAT and GST, leave this field unset and send the rate and the tax on each line. Set it to `required` when a tax provider returns the tax.\n- The request fails with `422` when the result is DualEntry's own VAT or GST, when the calculation cannot finish, or when a required address is still missing.\n- When the record has a customer, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer.\n- If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n- When the record has a vendor, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company.\n- DualEntry stores only the ship addresses you sent."
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "vendor_id": {
            "description": "If this vendor is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Vendor Id",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exchange Rate"
          },
          "memo": {
            "title": "Memo",
            "maxLength": 512,
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "title": "Items",
            "items": {
              "$ref": "#/components/schemas/PublicBillItemIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "expenses": {
            "title": "Expenses",
            "items": {
              "$ref": "#/components/schemas/PublicBillExpenseIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "due_date": {
            "title": "Due Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "reference_number": {
            "default": "",
            "title": "Reference Number",
            "type": "string"
          },
          "purchase_order_number": {
            "title": "Purchase Order Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "ap_account_id": {
            "description": "ID of the AP account. The default is the intercompany AP account on an intercompany bill. On other bills, it is the vendor default, then the company default, then the system AP account. The account must be active, belong to the bill company or to no company, and be accounts payable, credit card, or other current liability.\n\nAn update without this field keeps the stored account, unless it changes the vendor or the company. On v3, or with the public API breaking changes, a `PUT` without this field uses the default. Send `null` to use the default.",
            "title": "Ap Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "vendor_id"
        ],
        "title": "PublicBillSchemaUpdateIn",
        "type": "object"
      },
      "PublicBillSchemaPatchIn": {
        "description": "Partial update payload for `PATCH /public/bills/{number}/`.\n\nEvery field is optional: send only the fields you want to change.\nUnset fields are left untouched on the existing record.\n\nUpdates allowed under the same constraints as `PUT`: period locks,\npayment-applied restrictions, and approval-workflow rules apply.",
        "properties": {
          "withholding_tax_payable_account_id": {
            "description": "ID of the liability account for the withheld amounts. When you send `null`, or omit the field on create, DualEntry uses the `default_withholding_tax_payable_account_id` of the vendor. A record with withholding tax needs one of the two. On an update, an omitted value keeps the stored account.",
            "title": "Withholding Tax Payable Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "auto_calculate_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoCalculateTaxMode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Configures how to handle automatic tax calculations.\n\nIf `auto_calculate_tax` is unset, the tax you send on each line is stored. Set it to `required` to have DualEntry calculate the tax, replacing the tax on every line before it saves the record.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST.\n\n- For native VAT and GST, leave this field unset and send the rate and the tax on each line. Set it to `required` when a tax provider returns the tax.\n- The request fails with `422` when the result is DualEntry's own VAT or GST, when the calculation cannot finish, or when a required address is still missing.\n- When the record has a customer, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer.\n- If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n- When the record has a vendor, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company.\n- DualEntry stores only the ship addresses you sent."
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "description": "If this vendor is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exchange Rate"
          },
          "memo": {
            "title": "Memo",
            "maxLength": 512,
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "title": "Items",
            "items": {
              "$ref": "#/components/schemas/PublicBillItemIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "expenses": {
            "title": "Expenses",
            "items": {
              "$ref": "#/components/schemas/PublicBillExpenseIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "due_date": {
            "title": "Due Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "reference_number": {
            "default": "",
            "title": "Reference Number",
            "type": "string"
          },
          "purchase_order_number": {
            "title": "Purchase Order Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "ap_account_id": {
            "description": "ID of the AP account. The default is the intercompany AP account on an intercompany bill. On other bills, it is the vendor default, then the company default, then the system AP account. The account must be active, belong to the bill company or to no company, and be accounts payable, credit card, or other current liability.\n\nAn update without this field keeps the stored account, unless it changes the vendor or the company. On v3, or with the public API breaking changes, a `PUT` without this field uses the default. Send `null` to use the default.",
            "title": "Ap Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "attachments": {
            "title": "Attachments",
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "date": {
            "title": "Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicBillSchemaPatchIn",
        "type": "object"
      },
      "PagedPublicBillLineOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicBillLineOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicBillLineOut",
        "type": "object"
      },
      "PublicBillLineOut": {
        "description": "Unified V2 bill line: one row of `bill_lines`, item or expense, tagged by `line_type`.\n\nItem-only fields (`item_id`, `memo`) are null on expense rows; expense-only fields\n(`account_number`, `expense_description`, `customer_*`, `vendor_*`) are null on item rows.",
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "item_type": {
            "title": "Item Type",
            "type": [
              "string",
              "null"
            ]
          },
          "hsn_sac_code": {
            "title": "Hsn Sac Code",
            "type": [
              "string",
              "null"
            ]
          },
          "amortizable_assets": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AmortizableAssetRefOut"
            },
            "title": "Amortizable Assets",
            "type": "array"
          },
          "fixed_assets": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/FixedAssetRefOut"
            },
            "title": "Fixed Assets",
            "type": "array"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "withholding_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LineWithholdingTaxSchemaOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The withholding tax of the line, or `null` when the line has none. `amount` is the withheld amount in the record currency."
          },
          "payable_amount": {
            "description": "Line amount minus the withheld amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Payable Amount",
            "type": "string"
          },
          "withholding_tax_rate_id": {
            "description": "ID of the withholding tax rate of the line, or `null` when the line has no withholding tax.",
            "title": "Withholding Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxDataOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_billable": {
            "default": false,
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_customer_name": {
            "title": "Billable Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_project_id": {
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_name": {
            "title": "Billable Project Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_markup_pct": {
            "title": "Billable Markup Pct",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "special_tax_treatment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpecialTaxTreatment"
              },
              {
                "type": "null"
              }
            ],
            "description": "Identifies an expense line whose full amount is import VAT."
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "line_type": {
            "title": "Line Type",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Rate",
            "type": "string"
          },
          "quantity": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity",
            "type": "string"
          },
          "company_id": {
            "description": "Optional company for this line. If this company differs from the record `company_id`, DualEntry posts intercompany Due To/From and elimination entries. Omit this field, or set it equal to the header `company_id`, for a single-company line.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "item_id": {
            "title": "Item Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "expense_description": {
            "title": "Expense Description",
            "type": [
              "string",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": [
              "string",
              "null"
            ]
          },
          "net_amount": {
            "description": "Net amount before tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Net Amount",
            "type": "string"
          },
          "tax_amount": {
            "description": "Calculated tax amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Tax Amount",
            "type": "string"
          },
          "gross_amount": {
            "description": "Calculated total amount including tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Gross Amount",
            "type": "string"
          },
          "amount": {
            "description": "Calculated total amount including tax named amount for backward compatibility",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Amount",
            "type": "string"
          }
        },
        "required": [
          "payable_amount",
          "id",
          "line_type",
          "position",
          "rate",
          "quantity",
          "net_amount",
          "tax_amount",
          "gross_amount",
          "amount"
        ],
        "title": "PublicBillLineOut",
        "type": "object"
      },
      "PublicJournalEntryListFilterSchema": {
        "properties": {
          "integration_sources": {
            "title": "Integration Sources",
            "items": {
              "$ref": "#/components/schemas/IntegrationSourceSlug"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "account_id": {
            "title": "Account Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status_scope": {
            "title": "Approval Status Scope",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "related_journal_entry_number": {
            "description": "Filter by the number of the related journal entry.",
            "title": "Related Journal Entry Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "accrual_template_id": {
            "title": "Accrual Template Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "is_adjusting_entry": {
            "title": "Is Adjusting Entry",
            "type": [
              "boolean",
              "null"
            ]
          },
          "amount_gte": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Amount Gte"
          },
          "amount_lte": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Amount Lte"
          },
          "created_by_id": {
            "title": "Created By Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "created_by_name": {
            "title": "Created By Name",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicJournalEntryListFilterSchema",
        "type": "object"
      },
      "JournalEntryItemOut": {
        "properties": {
          "not_aging_eligible_reason": {
            "default": "",
            "description": "Audit text that excludes an accounts receivable or accounts payable line from aging.",
            "maxLength": 255,
            "title": "Not Aging Eligible Reason",
            "type": "string"
          },
          "account_id": {
            "title": "Account Id",
            "type": "integer"
          },
          "debit": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Debit",
            "type": "string"
          },
          "credit": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Credit",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "eliminated": {
            "default": false,
            "title": "Eliminated",
            "type": "boolean"
          },
          "is_billable": {
            "default": false,
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_id": {
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_markup_pct": {
            "title": "Billable Markup Pct",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "amortizable_assets": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AmortizableAssetRefOut"
            },
            "title": "Amortizable Assets",
            "type": "array"
          },
          "fixed_assets": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/FixedAssetRefOut"
            },
            "title": "Fixed Assets",
            "type": "array"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "currency": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "line_type": {
            "$ref": "#/components/schemas/LineType"
          },
          "original_line_id": {
            "title": "Original Line Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_customer_name": {
            "title": "Billable Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_project_name": {
            "title": "Billable Project Name",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "account_id",
          "debit",
          "credit",
          "position",
          "id",
          "currency",
          "line_type"
        ],
        "title": "JournalEntryItemOut",
        "type": "object"
      },
      "LineType": {
        "enum": [
          "NORMAL",
          "REVERSAL"
        ],
        "title": "LineType",
        "type": "string"
      },
      "PagedPublicJournalEntrySchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicJournalEntrySchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicJournalEntrySchemaOut",
        "type": "object"
      },
      "PublicJournalEntryItemOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "amortizable_assets": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AmortizableAssetRefOut"
            },
            "title": "Amortizable Assets",
            "type": "array"
          },
          "fixed_assets": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/FixedAssetRefOut"
            },
            "title": "Fixed Assets",
            "type": "array"
          },
          "debit": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Debit",
            "type": "string"
          },
          "credit": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Credit",
            "type": "string"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "not_aging_eligible_reason": {
            "default": "",
            "description": "Audit text that excludes an accounts receivable or accounts payable line from aging.",
            "maxLength": 255,
            "title": "Not Aging Eligible Reason",
            "type": "string"
          },
          "is_billable": {
            "default": false,
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_customer_name": {
            "title": "Billable Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_project_id": {
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_name": {
            "title": "Billable Project Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_markup_pct": {
            "title": "Billable Markup Pct",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "entry_id": {
            "title": "Entry Id",
            "type": "integer"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "eliminated": {
            "default": false,
            "title": "Eliminated",
            "type": "boolean"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "debit",
          "credit",
          "id",
          "entry_id",
          "account_number",
          "position",
          "memo"
        ],
        "title": "PublicJournalEntryItemOut",
        "type": "object"
      },
      "PublicJournalEntrySchemaOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "book_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Book Ids",
            "type": "array"
          },
          "reversal_items": {
            "items": {
              "$ref": "#/components/schemas/JournalEntryItemOut"
            },
            "title": "Reversal Items",
            "type": "array"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicJournalEntryItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "bank_match_status": {
            "title": "Bank Match Status",
            "type": [
              "string",
              "null"
            ]
          },
          "reconciliation_status": {
            "title": "Reconciliation Status",
            "type": [
              "string",
              "null"
            ]
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "type": [
              "string",
              "null"
            ]
          },
          "next_approvers": {
            "title": "Next Approvers",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rejected_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectedBySchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_id": {
            "title": "Transaction Id",
            "type": "integer"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "reference_number": {
            "title": "Reference Number",
            "type": [
              "string",
              "null"
            ]
          },
          "date": {
            "description": "Posting date (GL date) - the date when the transaction is recorded in the general ledger",
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "description": "Transaction date (inception date) - the date when the transaction actually occurred",
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "enable_elimination": {
            "default": false,
            "title": "Enable Elimination",
            "type": "boolean"
          },
          "is_adjusting_entry": {
            "title": "Is Adjusting Entry",
            "type": "boolean"
          },
          "created_by_id": {
            "title": "Created By Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "created_by_name": {
            "title": "Created By Name",
            "type": [
              "string",
              "null"
            ]
          },
          "reversal_date": {
            "description": "Posting date of the reversal, or null when the journal entry is not reversed. Mirrors the `reversal_date` accepted on create/update.",
            "title": "Reversal Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "related_journal_entry_number": {
            "title": "Related Journal Entry Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "accrual_template_id": {
            "title": "Accrual Template Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "recurring_record_number": {
            "title": "Recurring Record Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "book_ids",
          "reversal_items",
          "items",
          "internal_id",
          "number",
          "transaction_id",
          "company_id",
          "company_name",
          "company_currency",
          "memo",
          "date",
          "transaction_date",
          "currency_iso_4217_code",
          "amount",
          "exchange_rate",
          "record_status",
          "is_adjusting_entry",
          "created_at",
          "updated_at"
        ],
        "title": "PublicJournalEntrySchemaOut",
        "type": "object"
      },
      "JournalEntryReversalAgingOverrideIn": {
        "description": "Per-line aging override for REVERSAL lines. Distinct from GET `reversal_items`.",
        "properties": {
          "not_aging_eligible_reason": {
            "default": "",
            "description": "Audit text that excludes an accounts receivable or accounts payable line from aging.",
            "maxLength": 255,
            "title": "Not Aging Eligible Reason",
            "type": "string"
          },
          "original_line_id": {
            "title": "Original Line Id",
            "type": "integer"
          }
        },
        "required": [
          "original_line_id"
        ],
        "title": "JournalEntryReversalAgingOverrideIn",
        "type": "object"
      },
      "PublicJournalEntryItemIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "not_aging_eligible_reason": {
            "default": "",
            "description": "Audit text that excludes an accounts receivable or accounts payable line from aging.",
            "maxLength": 255,
            "title": "Not Aging Eligible Reason",
            "type": "string"
          },
          "is_billable": {
            "default": false,
            "description": "When `true`, this line is billable to a customer. Requires `billable_customer_id`.",
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "description": "Customer to rebill for this line. Required when `is_billable` is `true`. Distinct from `customer_id` on expense lines.",
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_id": {
            "description": "Optional project for the billable line. When set with `billable_customer_id`, the project must belong to that customer.",
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_markup_pct": {
            "anyOf": [
              {
                "maximum": 1000.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional markup percent for the billable line (0-1000).",
            "title": "Billable Markup Pct"
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "debit": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Debit"
          },
          "credit": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Credit"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "eliminated": {
            "default": false,
            "title": "Eliminated",
            "type": "boolean"
          }
        },
        "required": [
          "account_number",
          "debit",
          "credit",
          "position"
        ],
        "title": "PublicJournalEntryItemIn",
        "type": "object"
      },
      "PublicJournalEntrySchemaCreateIn": {
        "properties": {
          "items": {
            "title": "Items",
            "items": {
              "$ref": "#/components/schemas/PublicJournalEntryItemIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "reference_number": {
            "title": "Reference Number",
            "maxLength": 128,
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exchange Rate"
          },
          "reversal_date": {
            "title": "Reversal Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "reversal_aging_overrides": {
            "title": "Reversal Aging Overrides",
            "items": {
              "$ref": "#/components/schemas/JournalEntryReversalAgingOverrideIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "related_journal_entry_number": {
            "description": "Number of the journal entry this entry reverses or relates to.",
            "title": "Related Journal Entry Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "accrual_template_id": {
            "title": "Accrual Template Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "book_ids": {
            "description": "Accounting book ids. Omit to assign every active book.",
            "title": "Book Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "is_adjusting_entry": {
            "default": false,
            "description": "Marks the journal entry as an adjusting entry. Omit on update to keep the stored value.",
            "title": "Is Adjusting Entry",
            "type": "boolean"
          }
        },
        "required": [
          "date",
          "company_id"
        ],
        "title": "PublicJournalEntrySchemaCreateIn",
        "type": "object"
      },
      "PublicJournalEntrySchemaUpdateIn": {
        "properties": {
          "items": {
            "title": "Items",
            "items": {
              "$ref": "#/components/schemas/PublicJournalEntryItemIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "reference_number": {
            "title": "Reference Number",
            "maxLength": 128,
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exchange Rate"
          },
          "reversal_date": {
            "title": "Reversal Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "reversal_aging_overrides": {
            "title": "Reversal Aging Overrides",
            "items": {
              "$ref": "#/components/schemas/JournalEntryReversalAgingOverrideIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "related_journal_entry_number": {
            "description": "Number of the journal entry this entry reverses or relates to.",
            "title": "Related Journal Entry Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "accrual_template_id": {
            "title": "Accrual Template Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "book_ids": {
            "description": "Accounting book ids. Omit to assign every active book.",
            "title": "Book Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "is_adjusting_entry": {
            "default": false,
            "description": "Marks the journal entry as an adjusting entry. Omit on update to keep the stored value.",
            "title": "Is Adjusting Entry",
            "type": "boolean"
          }
        },
        "required": [
          "date",
          "company_id"
        ],
        "title": "PublicJournalEntrySchemaUpdateIn",
        "type": "object"
      },
      "PagedPublicJournalEntryV2ItemOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicJournalEntryV2ItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicJournalEntryV2ItemOut",
        "type": "object"
      },
      "PublicJournalEntryV2ItemOut": {
        "description": "V2 journal entry line: adds handles to the line's reversal counterpart.\n\nReversal lines are byte-identical to the line they reverse except for their own `id`/`entry_id`\nand swapped debit/credit, so V2 links to them from the NORMAL line instead of duplicating every\nrow in a second collection. `reversal_entry_id` is the GL-level handle accepted by\n`POST /public/v2/bank-match/matches/`; both are null when the journal entry has no reversal.",
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "amortizable_assets": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AmortizableAssetRefOut"
            },
            "title": "Amortizable Assets",
            "type": "array"
          },
          "fixed_assets": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/FixedAssetRefOut"
            },
            "title": "Fixed Assets",
            "type": "array"
          },
          "debit": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Debit",
            "type": "string"
          },
          "credit": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Credit",
            "type": "string"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "not_aging_eligible_reason": {
            "default": "",
            "description": "Audit text that excludes an accounts receivable or accounts payable line from aging.",
            "maxLength": 255,
            "title": "Not Aging Eligible Reason",
            "type": "string"
          },
          "is_billable": {
            "default": false,
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_customer_name": {
            "title": "Billable Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_project_id": {
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_name": {
            "title": "Billable Project Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_markup_pct": {
            "title": "Billable Markup Pct",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "entry_id": {
            "title": "Entry Id",
            "type": "integer"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "eliminated": {
            "default": false,
            "title": "Eliminated",
            "type": "boolean"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": [
              "string",
              "null"
            ]
          },
          "reversal_line_id": {
            "title": "Reversal Line Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "reversal_entry_id": {
            "title": "Reversal Entry Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "debit",
          "credit",
          "id",
          "entry_id",
          "account_number",
          "position",
          "memo"
        ],
        "title": "PublicJournalEntryV2ItemOut",
        "type": "object"
      },
      "PublicPurchaseOrderListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status_scope": {
            "title": "Approval Status Scope",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "billed": {
            "title": "Billed",
            "type": [
              "boolean",
              "null"
            ]
          },
          "unbilled": {
            "title": "Unbilled",
            "type": [
              "boolean",
              "null"
            ]
          },
          "partially_billed": {
            "title": "Partially Billed",
            "type": [
              "boolean",
              "null"
            ]
          },
          "billed_status": {
            "default": [],
            "items": {
              "enum": [
                "billed",
                "unbilled",
                "partially_billed"
              ],
              "title": "PurchaseOrderBilledStatus",
              "type": "string"
            },
            "title": "Billed Status",
            "type": "array",
            "uniqueItems": true
          },
          "lifecycle_status": {
            "title": "Lifecycle Status",
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderLifecycleStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicPurchaseOrderListFilterSchema",
        "type": "object"
      },
      "PurchaseOrderBilledStatus": {
        "enum": [
          "billed",
          "unbilled",
          "partially_billed"
        ],
        "title": "PurchaseOrderBilledStatus",
        "type": "string"
      },
      "PurchaseOrderLifecycleStatus": {
        "enum": [
          "open",
          "closed",
          "cancelled"
        ],
        "title": "PurchaseOrderLifecycleStatus",
        "type": "string"
      },
      "PagedPublicPurchaseOrderSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicPurchaseOrderSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicPurchaseOrderSchemaOut",
        "type": "object"
      },
      "PublicPurchaseOrderExpenseOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "classifications": {
            "description": "Classifications of the expense line",
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxDataOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_billable": {
            "default": false,
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_customer_name": {
            "title": "Billable Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_project_id": {
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_name": {
            "title": "Billable Project Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_markup_pct": {
            "title": "Billable Markup Pct",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "special_tax_treatment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpecialTaxTreatment"
              },
              {
                "type": "null"
              }
            ],
            "description": "Identifies an expense line whose full amount is import VAT."
          },
          "id": {
            "description": "ID of the expense line",
            "title": "Id",
            "type": "integer"
          },
          "position": {
            "description": "Position of the expense line in the purchase order",
            "title": "Position",
            "type": "integer"
          },
          "account_id": {
            "description": "ID of the expense account",
            "title": "Account Id",
            "type": "integer"
          },
          "account_name": {
            "description": "Name of the expense account",
            "title": "Account Name",
            "type": "string"
          },
          "expense_description": {
            "description": "Description of the expense line",
            "title": "Expense Description",
            "type": "string"
          },
          "quantity": {
            "description": "Quantity ordered",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity",
            "type": "string"
          },
          "rate": {
            "description": "Rate per unit",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Rate",
            "type": "string"
          },
          "amount_billed": {
            "description": "Amount of this expense line that already has a corresponding Bill",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount Billed",
            "type": "string"
          },
          "amount_due": {
            "description": "Amount of this expense line yet to be billed",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount Due",
            "type": "string"
          },
          "net_amount": {
            "description": "Net amount before tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Net Amount",
            "type": "string"
          },
          "tax_amount": {
            "description": "Calculated tax amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Tax Amount",
            "type": "string"
          },
          "gross_amount": {
            "description": "Calculated total amount including tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Gross Amount",
            "type": "string"
          },
          "amount": {
            "description": "Calculated total amount including tax named amount for backward compatibility",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Amount",
            "type": "string"
          }
        },
        "required": [
          "classifications",
          "id",
          "position",
          "account_id",
          "account_name",
          "expense_description",
          "quantity",
          "rate",
          "amount_billed",
          "amount_due",
          "net_amount",
          "tax_amount",
          "gross_amount",
          "amount"
        ],
        "title": "PublicPurchaseOrderExpenseOut",
        "type": "object"
      },
      "PublicPurchaseOrderItemOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "classifications": {
            "description": "Classifications of the item",
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "item_type": {
            "title": "Item Type",
            "type": [
              "string",
              "null"
            ]
          },
          "hsn_sac_code": {
            "title": "Hsn Sac Code",
            "type": [
              "string",
              "null"
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxDataOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_billable": {
            "default": false,
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_customer_name": {
            "title": "Billable Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_project_id": {
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_name": {
            "title": "Billable Project Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_markup_pct": {
            "title": "Billable Markup Pct",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "ID of the item",
            "title": "Id",
            "type": "integer"
          },
          "item_id": {
            "title": "Item Id",
            "type": "integer"
          },
          "position": {
            "description": "Position of the item in the purchase order",
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "description": "Memo of the item",
            "title": "Memo",
            "type": "string"
          },
          "quantity": {
            "description": "Quantity ordered",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity",
            "type": "string"
          },
          "rate": {
            "description": "Rate per unit",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Rate",
            "type": "string"
          },
          "quantity_billed": {
            "description": "Quantity of items that already have corresponding Bill",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity Billed",
            "type": "string"
          },
          "quantity_due": {
            "description": "Quantity of items yet to be billed",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity Due",
            "type": "string"
          },
          "expected_location_id": {
            "description": "Location the item is expected to be received into. Advisory only, not enforced against the Item Receipt.",
            "title": "Expected Location Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "expected_location_name": {
            "description": "Name of the expected location",
            "title": "Expected Location Name",
            "type": [
              "string",
              "null"
            ]
          },
          "net_amount": {
            "description": "Net amount before tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Net Amount",
            "type": "string"
          },
          "tax_amount": {
            "description": "Calculated tax amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Tax Amount",
            "type": "string"
          },
          "gross_amount": {
            "description": "Calculated total amount including tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Gross Amount",
            "type": "string"
          },
          "amount": {
            "description": "Calculated total amount including tax named amount for backward compatibility",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Amount",
            "type": "string"
          }
        },
        "required": [
          "classifications",
          "id",
          "item_id",
          "position",
          "memo",
          "quantity",
          "rate",
          "quantity_billed",
          "quantity_due",
          "net_amount",
          "tax_amount",
          "gross_amount",
          "amount"
        ],
        "title": "PublicPurchaseOrderItemOut",
        "type": "object"
      },
      "PublicPurchaseOrderSchemaOut": {
        "properties": {
          "ship_from_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_to_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "term_name": {
            "title": "Term Name",
            "type": "string"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "type": [
              "string",
              "null"
            ]
          },
          "next_approvers": {
            "title": "Next Approvers",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rejected_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectedBySchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "description": "Name of the company",
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": "integer"
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "billed_total": {
            "description": "Total quantity of items that were already billed",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Billed Total",
            "type": "string"
          },
          "due_total": {
            "description": "Total quantity of items yet to be billed",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Due Total",
            "type": "string"
          },
          "amount": {
            "description": "Total amount of ordered items",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicPurchaseOrderItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "expenses": {
            "default": [],
            "description": "Expense lines of the purchase order",
            "items": {
              "$ref": "#/components/schemas/PublicPurchaseOrderExpenseOut"
            },
            "title": "Expenses",
            "type": "array"
          },
          "expense_billed_total": {
            "default": "0.00",
            "description": "Total amount of expense lines that were already billed",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Expense Billed Total",
            "type": "string"
          },
          "expense_due_total": {
            "default": "0.00",
            "description": "Total amount of expense lines yet to be billed",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Expense Due Total",
            "type": "string"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "billed_status": {
            "$ref": "#/components/schemas/PurchaseOrderBilledStatus"
          },
          "lifecycle_status": {
            "$ref": "#/components/schemas/PurchaseOrderLifecycleStatus"
          },
          "reference_number": {
            "default": "",
            "title": "Reference Number",
            "type": "string"
          },
          "expected_location_id": {
            "description": "Default expected location for this PO's lines. Advisory only, not enforced.",
            "title": "Expected Location Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "expected_location_name": {
            "description": "Name of the default expected location",
            "title": "Expected Location Name",
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "term_id",
          "term_name",
          "internal_id",
          "number",
          "date",
          "company_id",
          "company_name",
          "company_currency",
          "vendor_id",
          "vendor_name",
          "currency_iso_4217_code",
          "exchange_rate",
          "billed_total",
          "due_total",
          "amount",
          "memo",
          "items",
          "record_status",
          "billed_status",
          "lifecycle_status",
          "created_at",
          "updated_at"
        ],
        "title": "PublicPurchaseOrderSchemaOut",
        "type": "object"
      },
      "PublicRecordClassificationsSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "line_id": {
            "title": "Line Id",
            "type": "integer"
          },
          "line_name": {
            "title": "Line Name",
            "type": "string"
          },
          "parent_classification_id": {
            "title": "Parent Classification Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "parent_classification_line_id": {
            "title": "Parent Classification Line Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "line_id",
          "line_name"
        ],
        "title": "PublicRecordClassificationsSchemaOut",
        "type": "object"
      },
      "PublicPurchaseOrderExpenseIn": {
        "properties": {
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxData"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_billable": {
            "default": false,
            "description": "When `true`, this line is billable to a customer. Requires `billable_customer_id`.",
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "description": "Customer to rebill for this line. Required when `is_billable` is `true`. Distinct from `customer_id` on expense lines.",
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_id": {
            "description": "Optional project for the billable line. When set with `billable_customer_id`, the project must belong to that customer.",
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_markup_pct": {
            "anyOf": [
              {
                "maximum": 1000.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional markup percent for the billable line (0-1000).",
            "title": "Billable Markup Pct"
          },
          "special_tax_treatment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpecialTaxTreatment"
              },
              {
                "type": "null"
              }
            ],
            "description": "Identifies an expense line whose full amount is import VAT."
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "position": {
            "description": "Position of the expense line in the purchase order",
            "title": "Position",
            "type": "integer"
          },
          "account_id": {
            "description": "ID of the expense account",
            "title": "Account Id",
            "type": "integer"
          },
          "expense_description": {
            "description": "Description of the expense line",
            "title": "Expense Description",
            "type": "string"
          },
          "quantity": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "description": "Quantity of the expense line",
            "title": "Quantity"
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "description": "Rate of the expense line",
            "title": "Rate"
          },
          "classifications": {
            "default": [],
            "description": "Classifications of the expense line",
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "position",
          "account_id",
          "expense_description",
          "quantity",
          "rate"
        ],
        "title": "PublicPurchaseOrderExpenseIn",
        "type": "object"
      },
      "PublicPurchaseOrderItemIn": {
        "properties": {
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxData"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_billable": {
            "default": false,
            "description": "When `true`, this line is billable to a customer. Requires `billable_customer_id`.",
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "description": "Customer to rebill for this line. Required when `is_billable` is `true`. Distinct from `customer_id` on expense lines.",
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_id": {
            "description": "Optional project for the billable line. When set with `billable_customer_id`, the project must belong to that customer.",
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_markup_pct": {
            "anyOf": [
              {
                "maximum": 1000.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional markup percent for the billable line (0-1000).",
            "title": "Billable Markup Pct"
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "position": {
            "description": "Position of the item in the purchase order",
            "title": "Position",
            "type": "integer"
          },
          "item_id": {
            "description": "ID of the item",
            "title": "Item Id",
            "type": "integer"
          },
          "memo": {
            "description": "Memo of the item",
            "title": "Memo",
            "type": "string"
          },
          "quantity": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "description": "Quantity of the item",
            "title": "Quantity"
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "description": "Rate of the item",
            "title": "Rate"
          },
          "classifications": {
            "default": [],
            "description": "Classifications of the item",
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "expected_location_id": {
            "description": "Location the item is expected to be received into. Advisory only, not enforced against the Item Receipt.",
            "title": "Expected Location Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "position",
          "item_id",
          "memo",
          "quantity",
          "rate"
        ],
        "title": "PublicPurchaseOrderItemIn",
        "type": "object"
      },
      "PublicPurchaseOrderSchemaCreateIn": {
        "properties": {
          "ship_from_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_to_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "auto_calculate_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoCalculateTaxMode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Configures how to handle automatic tax calculations.\n\nIf `auto_calculate_tax` is unset, the tax you send on each line is stored. Set it to `required` to have DualEntry calculate the tax, replacing the tax on every line before it saves the record.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST.\n\n- For native VAT and GST, leave this field unset and send the rate and the tax on each line. Set it to `required` when a tax provider returns the tax.\n- The request fails with `422` when the result is DualEntry's own VAT or GST, when the calculation cannot finish, or when a required address is still missing.\n- When the record has a customer, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer.\n- If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n- When the record has a vendor, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company.\n- DualEntry stores only the ship addresses you sent."
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicPurchaseOrderItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "expenses": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicPurchaseOrderExpenseIn"
            },
            "title": "Expenses",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "reference_number": {
            "default": "",
            "title": "Reference Number",
            "type": "string"
          },
          "expected_location_id": {
            "description": "Default expected location for this PO's lines. Advisory only, not enforced.",
            "title": "Expected Location Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "date",
          "company_id",
          "vendor_id",
          "currency_iso_4217_code",
          "exchange_rate",
          "memo"
        ],
        "title": "PublicPurchaseOrderSchemaCreateIn",
        "type": "object"
      },
      "PublicPurchaseOrderSchemaUpdateIn": {
        "properties": {
          "ship_from_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_to_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "auto_calculate_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoCalculateTaxMode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Configures how to handle automatic tax calculations.\n\nIf `auto_calculate_tax` is unset, the tax you send on each line is stored. Set it to `required` to have DualEntry calculate the tax, replacing the tax on every line before it saves the record.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST.\n\n- For native VAT and GST, leave this field unset and send the rate and the tax on each line. Set it to `required` when a tax provider returns the tax.\n- The request fails with `422` when the result is DualEntry's own VAT or GST, when the calculation cannot finish, or when a required address is still missing.\n- When the record has a customer, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer.\n- If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n- When the record has a vendor, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company.\n- DualEntry stores only the ship addresses you sent."
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicPurchaseOrderItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "expenses": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicPurchaseOrderExpenseIn"
            },
            "title": "Expenses",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "reference_number": {
            "default": "",
            "title": "Reference Number",
            "type": "string"
          },
          "expected_location_id": {
            "description": "Default expected location for this PO's lines. Advisory only, not enforced.",
            "title": "Expected Location Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "date",
          "company_id",
          "vendor_id",
          "currency_iso_4217_code",
          "exchange_rate",
          "memo"
        ],
        "title": "PublicPurchaseOrderSchemaUpdateIn",
        "type": "object"
      },
      "PagedPublicPurchaseOrderLineOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicPurchaseOrderLineOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicPurchaseOrderLineOut",
        "type": "object"
      },
      "PublicPurchaseOrderLineOut": {
        "description": "One purchase order line, item or expense, tagged by `line_type`.",
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "classifications": {
            "description": "Classifications of the line",
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "item_type": {
            "title": "Item Type",
            "type": [
              "string",
              "null"
            ]
          },
          "hsn_sac_code": {
            "title": "Hsn Sac Code",
            "type": [
              "string",
              "null"
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxDataOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_billable": {
            "default": false,
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_customer_name": {
            "title": "Billable Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_project_id": {
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_name": {
            "title": "Billable Project Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_markup_pct": {
            "title": "Billable Markup Pct",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "special_tax_treatment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpecialTaxTreatment"
              },
              {
                "type": "null"
              }
            ],
            "description": "Identifies an expense line whose full amount is import VAT."
          },
          "id": {
            "description": "ID of the line",
            "title": "Id",
            "type": "integer"
          },
          "line_type": {
            "description": "Kind of line: item or expense",
            "title": "Line Type",
            "type": "string"
          },
          "position": {
            "description": "Position of the line in the purchase order",
            "title": "Position",
            "type": "integer"
          },
          "quantity": {
            "description": "Quantity ordered",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity",
            "type": "string"
          },
          "rate": {
            "description": "Rate per unit",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Rate",
            "type": "string"
          },
          "item_id": {
            "title": "Item Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "memo": {
            "description": "Memo of the item. Null on expense lines.",
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "quantity_billed": {
            "description": "Quantity already billed. Null on expense lines.",
            "title": "Quantity Billed",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "quantity_due": {
            "description": "Quantity yet to be billed. Null on expense lines.",
            "title": "Quantity Due",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "expected_location_id": {
            "description": "Location the item is expected to be received into. Advisory only, not enforced against the Item Receipt.",
            "title": "Expected Location Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "expected_location_name": {
            "description": "Name of the expected location",
            "title": "Expected Location Name",
            "type": [
              "string",
              "null"
            ]
          },
          "account_id": {
            "description": "ID of the expense account. Null on item lines.",
            "title": "Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "account_name": {
            "description": "Name of the expense account. Null on item lines.",
            "title": "Account Name",
            "type": [
              "string",
              "null"
            ]
          },
          "expense_description": {
            "description": "Description of the expense line. Null on item lines.",
            "title": "Expense Description",
            "type": [
              "string",
              "null"
            ]
          },
          "amount_billed": {
            "description": "Amount already billed. Null on item lines.",
            "title": "Amount Billed",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "amount_due": {
            "description": "Amount yet to be billed. Null on item lines.",
            "title": "Amount Due",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "net_amount": {
            "description": "Net amount before tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Net Amount",
            "type": "string"
          },
          "tax_amount": {
            "description": "Calculated tax amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Tax Amount",
            "type": "string"
          },
          "gross_amount": {
            "description": "Calculated total amount including tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Gross Amount",
            "type": "string"
          },
          "amount": {
            "description": "Calculated total amount including tax named amount for backward compatibility",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Amount",
            "type": "string"
          }
        },
        "required": [
          "classifications",
          "id",
          "line_type",
          "position",
          "quantity",
          "rate",
          "net_amount",
          "tax_amount",
          "gross_amount",
          "amount"
        ],
        "title": "PublicPurchaseOrderLineOut",
        "type": "object"
      },
      "PublicCustomerPrepaymentListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicCustomerPrepaymentListFilterSchema",
        "type": "object"
      },
      "CustomerDepositDataPublicSchema": {
        "properties": {
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "date": {
            "title": "Date",
            "type": "string"
          },
          "amount": {
            "title": "Amount",
            "type": "number"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "record_status": {
            "$ref": "#/components/schemas/core__constants__record_status__RecordStatus"
          }
        },
        "required": [
          "number",
          "date",
          "amount",
          "memo",
          "record_status"
        ],
        "title": "CustomerDepositDataPublicSchema",
        "type": "object"
      },
      "PagedPublicCustomerPrepaymentSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomerPrepaymentSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicCustomerPrepaymentSchemaOut",
        "type": "object"
      },
      "PublicCustomerPrepaymentSchemaOut": {
        "properties": {
          "transaction_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Transaction Ids",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": "integer"
          },
          "customer_name": {
            "title": "Customer Name",
            "type": "string"
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "check_number": {
            "title": "Check Number",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "date": {
            "description": "Posting date (GL date) - the date when the transaction is recorded in the general ledger",
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "description": "Transaction date (inception date) - the date when the transaction actually occurred",
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "undeposited_funds_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "bank_or_undeposited_funds_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Bank Or Undeposited Funds Amount",
            "type": "string"
          },
          "amount": {
            "description": "Total transaction amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "used_amount": {
            "description": "Amount that was already applied to Invoices",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Used Amount",
            "type": "string"
          },
          "remaining_amount": {
            "description": "Amount that can be applied to Invoices",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Remaining Amount",
            "type": "string"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "customer_deposits": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomerDepositDataPublicSchema"
            },
            "title": "Customer Deposits",
            "type": "array"
          },
          "recurring_record_number": {
            "title": "Recurring Record Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "transaction_ids",
          "internal_id",
          "number",
          "company_id",
          "company_name",
          "company_currency",
          "customer_id",
          "customer_name",
          "account_number",
          "memo",
          "check_number",
          "currency_iso_4217_code",
          "date",
          "transaction_date",
          "exchange_rate",
          "undeposited_funds_currency",
          "bank_or_undeposited_funds_amount",
          "amount",
          "used_amount",
          "remaining_amount",
          "record_status",
          "recurring_record_number",
          "created_at",
          "updated_at"
        ],
        "title": "PublicCustomerPrepaymentSchemaOut",
        "type": "object"
      },
      "PublicCustomerPrepaymentSchemaCreateIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "customer_id": {
            "description": "If this customer is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Customer Id",
            "type": "integer"
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "check_number": {
            "default": "",
            "title": "Check Number",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "undeposited_funds_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "description": "Total transaction amount",
            "title": "Amount"
          },
          "bank_or_undeposited_funds_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Bank Or Undeposited Funds Amount"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "customer_id",
          "currency_iso_4217_code",
          "exchange_rate",
          "amount",
          "bank_or_undeposited_funds_amount"
        ],
        "title": "PublicCustomerPrepaymentSchemaCreateIn",
        "type": "object"
      },
      "PublicCustomerPrepaymentSchemaUpdateIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "customer_id": {
            "description": "If this customer is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Customer Id",
            "type": "integer"
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "check_number": {
            "default": "",
            "title": "Check Number",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "undeposited_funds_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "description": "Total transaction amount",
            "title": "Amount"
          },
          "bank_or_undeposited_funds_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Bank Or Undeposited Funds Amount"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "customer_id",
          "currency_iso_4217_code",
          "exchange_rate",
          "amount",
          "bank_or_undeposited_funds_amount"
        ],
        "title": "PublicCustomerPrepaymentSchemaUpdateIn",
        "type": "object"
      },
      "PublicCustomerPrepaymentSchemaPatchIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "description": "If this customer is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "check_number": {
            "title": "Check Number",
            "type": [
              "string",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exchange Rate"
          },
          "undeposited_funds_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Amount"
          },
          "bank_or_undeposited_funds_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bank Or Undeposited Funds Amount"
          },
          "attachments": {
            "title": "Attachments",
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "date": {
            "title": "Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicCustomerPrepaymentSchemaPatchIn",
        "type": "object"
      },
      "PublicCustomerPrepaymentApplicationListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicCustomerPrepaymentApplicationListFilterSchema",
        "type": "object"
      },
      "PagedPublicCustomerPrepaymentApplicationSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomerPrepaymentApplicationSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicCustomerPrepaymentApplicationSchemaOut",
        "type": "object"
      },
      "PublicCustomerPrepaymentApplicationItemOut": {
        "properties": {
          "invoice_number": {
            "title": "Invoice Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "amount_due": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount Due",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          }
        },
        "required": [
          "amount",
          "amount_due",
          "position"
        ],
        "title": "PublicCustomerPrepaymentApplicationItemOut",
        "type": "object"
      },
      "PublicCustomerPrepaymentApplicationSchemaOut": {
        "properties": {
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "transaction_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Transaction Ids",
            "type": "array"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomerPrepaymentApplicationItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": "integer"
          },
          "customer_name": {
            "title": "Customer Name",
            "type": "string"
          },
          "customer_prepayment_number": {
            "title": "Customer Prepayment Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_credit_number": {
            "title": "Customer Credit Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "date": {
            "description": "Posting date (GL date) - the date when the transaction is recorded in the general ledger",
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "description": "Transaction date (inception date) - the date when the transaction actually occurred",
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "amount": {
            "description": "Total transaction amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "transaction_ids",
          "internal_id",
          "number",
          "items",
          "company_id",
          "company_name",
          "company_currency",
          "customer_id",
          "customer_name",
          "customer_prepayment_number",
          "customer_credit_number",
          "currency_iso_4217_code",
          "exchange_rate",
          "memo",
          "date",
          "transaction_date",
          "amount",
          "record_status",
          "created_at",
          "updated_at"
        ],
        "title": "PublicCustomerPrepaymentApplicationSchemaOut",
        "type": "object"
      },
      "PublicCustomerPrepaymentApplicationItemIn": {
        "properties": {
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "invoice_number": {
            "title": "Invoice Number",
            "type": "integer"
          },
          "amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          }
        },
        "required": [
          "invoice_number",
          "amount",
          "position"
        ],
        "title": "PublicCustomerPrepaymentApplicationItemIn",
        "type": "object"
      },
      "PublicCustomerPrepaymentApplicationSchemaCreateIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "customer_prepayment_number": {
            "title": "Customer Prepayment Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_credit_number": {
            "title": "Customer Credit Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicCustomerPrepaymentApplicationItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "currency_iso_4217_code",
          "exchange_rate"
        ],
        "title": "PublicCustomerPrepaymentApplicationSchemaCreateIn",
        "type": "object"
      },
      "PublicCustomerPrepaymentApplicationSchemaUpdateIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "customer_prepayment_number": {
            "title": "Customer Prepayment Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_credit_number": {
            "title": "Customer Credit Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicCustomerPrepaymentApplicationItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "currency_iso_4217_code",
          "exchange_rate"
        ],
        "title": "PublicCustomerPrepaymentApplicationSchemaUpdateIn",
        "type": "object"
      },
      "PublicCustomerPrepaymentApplicationSchemaPatchIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_prepayment_number": {
            "title": "Customer Prepayment Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_credit_number": {
            "title": "Customer Credit Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exchange Rate"
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "title": "Items",
            "items": {
              "$ref": "#/components/schemas/PublicCustomerPrepaymentApplicationItemIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "attachments": {
            "title": "Attachments",
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "date": {
            "title": "Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicCustomerPrepaymentApplicationSchemaPatchIn",
        "type": "object"
      },
      "PagedPublicCustomerPrepaymentApplicationItemOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomerPrepaymentApplicationItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicCustomerPrepaymentApplicationItemOut",
        "type": "object"
      },
      "PublicCustomerDepositListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicCustomerDepositListFilterSchema",
        "type": "object"
      },
      "PagedPublicCustomerDepositSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomerDepositSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicCustomerDepositSchemaOut",
        "type": "object"
      },
      "PublicCustomerDepositItemOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "customer_prepayment_number": {
            "title": "Customer Prepayment Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_payment_number": {
            "title": "Customer Payment Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "cash_sale_number": {
            "title": "Cash Sale Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_refund_number": {
            "title": "Vendor Refund Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "account_id": {
            "title": "Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "description": {
            "title": "Description",
            "type": [
              "string",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "customer_prepayment_number",
          "customer_payment_number",
          "cash_sale_number",
          "vendor_refund_number",
          "account_id",
          "description",
          "customer_id",
          "vendor_id"
        ],
        "title": "PublicCustomerDepositItemOut",
        "type": "object"
      },
      "PublicCustomerDepositSchemaOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_id": {
            "title": "Transaction Id",
            "type": "integer"
          },
          "date": {
            "description": "Posting date (GL date) - the date when the transaction is recorded in the general ledger",
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "description": "Transaction date (inception date) - the date when the transaction actually occurred",
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "account_id": {
            "title": "Account Id",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "amount": {
            "description": "Total transaction amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomerDepositItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "internal_id",
          "number",
          "transaction_id",
          "date",
          "transaction_date",
          "company_id",
          "company_name",
          "company_currency",
          "account_id",
          "currency_iso_4217_code",
          "exchange_rate",
          "amount",
          "memo",
          "items",
          "record_status",
          "created_at",
          "updated_at"
        ],
        "title": "PublicCustomerDepositSchemaOut",
        "type": "object"
      },
      "PublicCustomerDepositItemIn": {
        "description": "Input schema for Customer Deposit line items in Public API.\n\nItems can reference:\n- A deposit source (`cash_sale_number`, `customer_payment_number`,\n  `customer_prepayment_number`, `vendor_refund_number`)\n- OR account-based entry with `account_number`, `customer_id`, `vendor_id`, `description`",
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "cash_sale_number": {
            "title": "Cash Sale Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_payment_number": {
            "title": "Customer Payment Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_prepayment_number": {
            "title": "Customer Prepayment Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_refund_number": {
            "title": "Vendor Refund Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "description": {
            "default": "",
            "title": "Description",
            "type": [
              "string",
              "null"
            ]
          },
          "amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Amount"
          }
        },
        "required": [
          "position",
          "amount"
        ],
        "title": "PublicCustomerDepositItemIn",
        "type": "object"
      },
      "PublicCustomerDepositSchemaCreateIn": {
        "description": "Input schema for creating Customer Deposits via Public API.",
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "check_number": {
            "default": "",
            "title": "Check Number",
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomerDepositItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "account_number",
          "currency_iso_4217_code",
          "exchange_rate",
          "items"
        ],
        "title": "PublicCustomerDepositSchemaCreateIn",
        "type": "object"
      },
      "PublicCustomerDepositSchemaUpdateIn": {
        "description": "Input schema for updating Customer Deposits via Public API.",
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "check_number": {
            "default": "",
            "title": "Check Number",
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomerDepositItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "account_number",
          "currency_iso_4217_code",
          "exchange_rate",
          "items"
        ],
        "title": "PublicCustomerDepositSchemaUpdateIn",
        "type": "object"
      },
      "PagedPublicCustomerDepositItemOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomerDepositItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicCustomerDepositItemOut",
        "type": "object"
      },
      "PublicCustomerRefundListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicCustomerRefundListFilterSchema",
        "type": "object"
      },
      "PagedPublicCustomerRefundSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomerRefundSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicCustomerRefundSchemaOut",
        "type": "object"
      },
      "PublicCustomerRefundItemOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "customer_credit_number": {
            "title": "Customer Credit Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_prepayment_number": {
            "title": "Customer Prepayment Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "description": {
            "default": "",
            "title": "Description",
            "type": "string"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "bank_or_credit_card_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Bank Or Credit Card Amount",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "position",
          "bank_or_credit_card_amount"
        ],
        "title": "PublicCustomerRefundItemOut",
        "type": "object"
      },
      "PublicCustomerRefundSchemaOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "transaction_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Transaction Ids",
            "type": "array"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomerRefundItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": "integer"
          },
          "customer_name": {
            "title": "Customer Name",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "check_number": {
            "title": "Check Number",
            "type": "string"
          },
          "date": {
            "description": "Posting date (GL date) - the date when the transaction is recorded in the general ledger",
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "description": "Transaction date (inception date) - the date when the transaction actually occurred",
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "bank_or_credit_card_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Bank Or Credit Card Amount",
            "type": "string"
          },
          "amount": {
            "description": "Total transaction amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "record_status": {
            "$ref": "#/components/schemas/core__constants__record_status__RecordStatus"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "paper_check_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/core__models__paper_check__PaperCheck__RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "transaction_ids",
          "internal_id",
          "number",
          "account_number",
          "items",
          "company_id",
          "company_name",
          "company_currency",
          "customer_id",
          "customer_name",
          "memo",
          "check_number",
          "date",
          "transaction_date",
          "currency_iso_4217_code",
          "exchange_rate",
          "bank_or_credit_card_amount",
          "amount",
          "record_status",
          "paper_check_status",
          "created_at",
          "updated_at"
        ],
        "title": "PublicCustomerRefundSchemaOut",
        "type": "object"
      },
      "core__constants__record_status__RecordStatus": {
        "enum": [
          "draft",
          "posted",
          "archived"
        ],
        "title": "RecordStatus",
        "type": "string"
      },
      "core__models__paper_check__PaperCheck__RecordStatus": {
        "enum": [
          "printed",
          "not_printed",
          "archived"
        ],
        "title": "RecordStatus",
        "type": "string"
      },
      "PublicCustomerRefundItemIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_credit_number": {
            "title": "Customer Credit Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_prepayment_number": {
            "title": "Customer Prepayment Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "description": {
            "default": "",
            "title": "Description",
            "type": "string"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "classifications": {
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          }
        },
        "required": [
          "amount",
          "position"
        ],
        "title": "PublicCustomerRefundItemIn",
        "type": "object"
      },
      "PublicCustomerRefundSchemaCreateIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "customer_id": {
            "description": "If this customer is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Customer Id",
            "type": "integer"
          },
          "check_number": {
            "default": "",
            "title": "Check Number",
            "type": "string"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicCustomerRefundItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "bank_or_credit_card_amount": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "default": "0.00",
            "description": "Bank or credit card amount",
            "title": "Bank Or Credit Card Amount"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "customer_id",
          "account_number",
          "currency_iso_4217_code",
          "exchange_rate"
        ],
        "title": "PublicCustomerRefundSchemaCreateIn",
        "type": "object"
      },
      "PublicCustomerRefundSchemaUpdateIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "customer_id": {
            "description": "If this customer is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Customer Id",
            "type": "integer"
          },
          "check_number": {
            "default": "",
            "title": "Check Number",
            "type": "string"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicCustomerRefundItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "bank_or_credit_card_amount": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "default": "0.00",
            "description": "Bank or credit card amount",
            "title": "Bank Or Credit Card Amount"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "customer_id",
          "account_number",
          "currency_iso_4217_code",
          "exchange_rate"
        ],
        "title": "PublicCustomerRefundSchemaUpdateIn",
        "type": "object"
      },
      "PagedPublicCustomerRefundItemOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomerRefundItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicCustomerRefundItemOut",
        "type": "object"
      },
      "PublicCustomerCreditListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_currency": {
            "title": "Transaction Currency",
            "items": {
              "$ref": "#/components/schemas/SystemCurrencies"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "e_invoice_status": {
            "description": "Keep the customer credits whose credit note filing has one of these statuses. `needs_attention` and `none` add to the statuses.",
            "title": "E Invoice Status",
            "items": {
              "$ref": "#/components/schemas/EInvoiceStatusFilter"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicCustomerCreditListFilterSchema",
        "type": "object"
      },
      "PagedPublicCustomerCreditSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomerCreditSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicCustomerCreditSchemaOut",
        "type": "object"
      },
      "PublicCustomerCreditItemOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "item_type": {
            "title": "Item Type",
            "type": [
              "string",
              "null"
            ]
          },
          "hsn_sac_code": {
            "title": "Hsn Sac Code",
            "type": [
              "string",
              "null"
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxDataOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "item_id": {
            "title": "Item Id",
            "type": "integer"
          },
          "quantity": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity",
            "type": "string"
          },
          "rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Rate",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "company_id": {
            "description": "Optional company for this line. If this company differs from the record `company_id`, DualEntry posts intercompany Due To/From and elimination entries. Omit this field, or set it equal to the header `company_id`, for a single-company line.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "net_amount": {
            "description": "Net amount before tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Net Amount",
            "type": "string"
          },
          "tax_amount": {
            "description": "Calculated tax amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Tax Amount",
            "type": "string"
          },
          "gross_amount": {
            "description": "Calculated total amount including tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Gross Amount",
            "type": "string"
          },
          "amount": {
            "description": "Calculated total amount including tax named amount for backward compatibility",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Amount",
            "type": "string"
          }
        },
        "required": [
          "id",
          "item_id",
          "quantity",
          "rate",
          "position",
          "memo",
          "net_amount",
          "tax_amount",
          "gross_amount",
          "amount"
        ],
        "title": "PublicCustomerCreditItemOut",
        "type": "object"
      },
      "PublicCustomerCreditSchemaOut": {
        "properties": {
          "bill_to_address": {
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": "string"
          },
          "ship_to_address": {
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": "string"
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Transaction Ids",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "integration_remote_records": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/IntegrationRemoteRecordSchemaOut"
            },
            "title": "Integration Remote Records",
            "type": "array"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "invoice_number": {
            "title": "Invoice Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "cash_sale_number": {
            "title": "Cash Sale Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "date": {
            "description": "Posting date (GL date) - the date when the transaction is recorded in the general ledger",
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "description": "Transaction date (inception date) - the date when the transaction actually occurred",
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "amount": {
            "description": "Total transaction amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "used_amount": {
            "description": "Amount that was already applied to Invoices through Customer Refunds or Customer Prepayment Applications",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Used Amount",
            "type": "string"
          },
          "remaining_amount": {
            "description": "Amount that can be applied to Invoices through Customer Refunds or Customer Prepayment Applications",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Remaining Amount",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "reference_number": {
            "title": "Reference Number",
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomerCreditItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "contract_id": {
            "title": "Contract Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "contracted": {
            "default": false,
            "title": "Contracted",
            "type": "boolean"
          },
          "e_invoice": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PublicEInvoiceSummarySchemaOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The e-invoice filing of the record. Null when DualEntry did not file it. Not in v1."
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "bill_to_address",
          "ship_to_address",
          "transaction_ids",
          "internal_id",
          "number",
          "invoice_number",
          "cash_sale_number",
          "date",
          "transaction_date",
          "company_id",
          "company_name",
          "company_currency",
          "currency_iso_4217_code",
          "exchange_rate",
          "amount",
          "used_amount",
          "remaining_amount",
          "memo",
          "reference_number",
          "items",
          "record_status",
          "created_at",
          "updated_at"
        ],
        "title": "PublicCustomerCreditSchemaOut",
        "type": "object"
      },
      "PublicCustomerCreditItemIn": {
        "description": "Input schema for customer credit item lines.",
        "properties": {
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxData"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "item_id": {
            "title": "Item Id",
            "type": "integer"
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "title": "Rate"
          },
          "quantity": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "title": "Quantity"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "company_id": {
            "description": "Optional company for this line. If this company differs from the record `company_id`, DualEntry posts intercompany Due To/From and elimination entries. Omit this field, or set it equal to the header `company_id`, for a single-company line.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "position",
          "item_id",
          "rate",
          "quantity"
        ],
        "title": "PublicCustomerCreditItemIn",
        "type": "object"
      },
      "PublicCustomerCreditSchemaCreateIn": {
        "description": "Input schema for creating Customer Credit records.",
        "properties": {
          "bill_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "ship_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "auto_calculate_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoCalculateTaxMode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Configures how to handle automatic tax calculations.\n\nIf `auto_calculate_tax` is unset, the tax you send on each line is stored. Set it to `required` to have DualEntry calculate the tax, replacing the tax on every line before it saves the record.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST.\n\n- For native VAT and GST, leave this field unset and send the rate and the tax on each line. Set it to `required` when a tax provider returns the tax.\n- The request fails with `422` when the result is DualEntry's own VAT or GST, when the calculation cannot finish, or when a required address is still missing.\n- When the record has a customer, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer.\n- If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n- When the record has a vendor, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company.\n- DualEntry stores only the ship addresses you sent."
          },
          "invoice_number": {
            "title": "Invoice Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "cash_sale_number": {
            "title": "Cash Sale Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "description": "If this customer is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "reference_number": {
            "default": "",
            "title": "Reference Number",
            "type": "string"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicCustomerCreditItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "contract_id": {
            "title": "Contract Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "date",
          "company_id",
          "currency_iso_4217_code",
          "exchange_rate"
        ],
        "title": "PublicCustomerCreditSchemaCreateIn",
        "type": "object"
      },
      "PublicCustomerCreditSchemaUpdateIn": {
        "description": "Input schema for updating Customer Credit records.",
        "properties": {
          "bill_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "ship_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "auto_calculate_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoCalculateTaxMode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Configures how to handle automatic tax calculations.\n\nIf `auto_calculate_tax` is unset, the tax you send on each line is stored. Set it to `required` to have DualEntry calculate the tax, replacing the tax on every line before it saves the record.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST.\n\n- For native VAT and GST, leave this field unset and send the rate and the tax on each line. Set it to `required` when a tax provider returns the tax.\n- The request fails with `422` when the result is DualEntry's own VAT or GST, when the calculation cannot finish, or when a required address is still missing.\n- When the record has a customer, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer.\n- If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n- When the record has a vendor, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company.\n- DualEntry stores only the ship addresses you sent."
          },
          "invoice_number": {
            "title": "Invoice Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "cash_sale_number": {
            "title": "Cash Sale Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "description": "If this customer is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "reference_number": {
            "default": "",
            "title": "Reference Number",
            "type": "string"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicCustomerCreditItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "contract_id": {
            "title": "Contract Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "date",
          "company_id",
          "currency_iso_4217_code",
          "exchange_rate"
        ],
        "title": "PublicCustomerCreditSchemaUpdateIn",
        "type": "object"
      },
      "PublicCustomerCreditSchemaPatchIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "auto_calculate_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoCalculateTaxMode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Configures how to handle automatic tax calculations.\n\nIf `auto_calculate_tax` is unset, the tax you send on each line is stored. Set it to `required` to have DualEntry calculate the tax, replacing the tax on every line before it saves the record.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST.\n\n- For native VAT and GST, leave this field unset and send the rate and the tax on each line. Set it to `required` when a tax provider returns the tax.\n- The request fails with `422` when the result is DualEntry's own VAT or GST, when the calculation cannot finish, or when a required address is still missing.\n- When the record has a customer, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer.\n- If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n- When the record has a vendor, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company.\n- DualEntry stores only the ship addresses you sent."
          },
          "invoice_number": {
            "title": "Invoice Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "cash_sale_number": {
            "title": "Cash Sale Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "description": "If this customer is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "reference_number": {
            "default": "",
            "title": "Reference Number",
            "type": "string"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exchange Rate"
          },
          "items": {
            "title": "Items",
            "items": {
              "$ref": "#/components/schemas/PublicCustomerCreditItemIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "attachments": {
            "title": "Attachments",
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "contract_id": {
            "title": "Contract Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "bill_to_address": {
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_to_address": {
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "date": {
            "title": "Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicCustomerCreditSchemaPatchIn",
        "type": "object"
      },
      "PagedPublicCustomerCreditItemOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomerCreditItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicCustomerCreditItemOut",
        "type": "object"
      },
      "PublicCashSaleListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "recurring_record_id": {
            "title": "Recurring Record Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "is_depositable": {
            "description": "Cash sales in undeposited funds with no posted customer deposit.",
            "title": "Is Depositable",
            "type": [
              "boolean",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicCashSaleListFilterSchema",
        "type": "object"
      },
      "PagedPublicCashSaleSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCashSaleSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicCashSaleSchemaOut",
        "type": "object"
      },
      "PublicCashSaleItemOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "item_type": {
            "title": "Item Type",
            "type": [
              "string",
              "null"
            ]
          },
          "hsn_sac_code": {
            "title": "Hsn Sac Code",
            "type": [
              "string",
              "null"
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxDataOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "item_id": {
            "title": "Item Id",
            "type": "integer"
          },
          "quantity": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity",
            "type": "string"
          },
          "rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Rate",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "bank_or_undeposited_account_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Bank Or Undeposited Account Amount",
            "type": "string"
          },
          "company_id": {
            "description": "Optional company for this line. If this company differs from the record `company_id`, DualEntry posts intercompany Due To/From and elimination entries. Omit this field, or set it equal to the header `company_id`, for a single-company line.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "net_amount": {
            "description": "Net amount before tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Net Amount",
            "type": "string"
          },
          "tax_amount": {
            "description": "Calculated tax amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Tax Amount",
            "type": "string"
          },
          "gross_amount": {
            "description": "Calculated total amount including tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Gross Amount",
            "type": "string"
          },
          "amount": {
            "description": "Calculated total amount including tax named amount for backward compatibility",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Amount",
            "type": "string"
          }
        },
        "required": [
          "id",
          "item_id",
          "quantity",
          "rate",
          "position",
          "memo",
          "bank_or_undeposited_account_amount",
          "net_amount",
          "tax_amount",
          "gross_amount",
          "amount"
        ],
        "title": "PublicCashSaleItemOut",
        "type": "object"
      },
      "PublicCashSaleSchemaOut": {
        "properties": {
          "bill_to_address": {
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": "string"
          },
          "ship_to_address": {
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": "string"
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "supply_date": {
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxContextOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "integration_remote_records": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/IntegrationRemoteRecordSchemaOut"
            },
            "title": "Integration Remote Records",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "transaction_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Transaction Ids",
            "type": "array"
          },
          "bank_match_status": {
            "title": "Bank Match Status",
            "type": [
              "string",
              "null"
            ]
          },
          "reconciliation_status": {
            "title": "Reconciliation Status",
            "type": [
              "string",
              "null"
            ]
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "type": [
              "string",
              "null"
            ]
          },
          "next_approvers": {
            "title": "Next Approvers",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rejected_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectedBySchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCashSaleItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": "integer"
          },
          "customer_name": {
            "title": "Customer Name",
            "type": "string"
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "amount": {
            "description": "Total transaction amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "check_number": {
            "title": "Check Number",
            "type": "string"
          },
          "date": {
            "description": "Posting date (GL date) - the date when the transaction is recorded in the general ledger",
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "description": "Transaction date (inception date) - the date when the transaction actually occurred",
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "undeposited_funds_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "bank_or_undeposited_account_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Bank Or Undeposited Account Amount",
            "type": "string"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "customer_deposits": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomerDepositDataPublicSchema"
            },
            "title": "Customer Deposits",
            "type": "array"
          },
          "recurring_record_id": {
            "title": "Recurring Record Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "bill_to_address",
          "ship_to_address",
          "supply_date",
          "tax",
          "transaction_ids",
          "internal_id",
          "number",
          "items",
          "company_id",
          "company_name",
          "company_currency",
          "customer_id",
          "customer_name",
          "account_number",
          "amount",
          "memo",
          "check_number",
          "date",
          "transaction_date",
          "currency_iso_4217_code",
          "exchange_rate",
          "undeposited_funds_currency",
          "bank_or_undeposited_account_amount",
          "record_status",
          "created_at",
          "updated_at"
        ],
        "title": "PublicCashSaleSchemaOut",
        "type": "object"
      },
      "PublicCashSaleItemIn": {
        "properties": {
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxData"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "item_id": {
            "title": "Item Id",
            "type": "integer"
          },
          "quantity": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "title": "Quantity"
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "title": "Rate"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "company_id": {
            "description": "Optional company for this line. If this company differs from the record `company_id`, DualEntry posts intercompany Due To/From and elimination entries. Omit this field, or set it equal to the header `company_id`, for a single-company line.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "item_id",
          "quantity",
          "rate",
          "position"
        ],
        "title": "PublicCashSaleItemIn",
        "type": "object"
      },
      "PublicCashSaleSchemaCreateIn": {
        "properties": {
          "bill_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "ship_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "auto_calculate_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoCalculateTaxMode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Configures how to handle automatic tax calculations.\n\nIf `auto_calculate_tax` is unset, the tax you send on each line is stored. Set it to `required` to have DualEntry calculate the tax, replacing the tax on every line before it saves the record.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST.\n\n- For native VAT and GST, leave this field unset and send the rate and the tax on each line. Set it to `required` when a tax provider returns the tax.\n- The request fails with `422` when the result is DualEntry's own VAT or GST, when the calculation cannot finish, or when a required address is still missing.\n- When the record has a customer, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer.\n- If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n- When the record has a vendor, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company.\n- DualEntry stores only the ship addresses you sent."
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "check_number": {
            "default": "",
            "title": "Check Number",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "customer_id": {
            "description": "If this customer is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Customer Id",
            "type": "integer"
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "bank_or_undeposited_account_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Bank Or Undeposited Account Amount"
          },
          "undeposited_funds_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicCashSaleItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "customer_id",
          "currency_iso_4217_code",
          "exchange_rate",
          "bank_or_undeposited_account_amount"
        ],
        "title": "PublicCashSaleSchemaCreateIn",
        "type": "object"
      },
      "PublicCashSaleSchemaUpdateIn": {
        "properties": {
          "bill_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "ship_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "auto_calculate_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoCalculateTaxMode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Configures how to handle automatic tax calculations.\n\nIf `auto_calculate_tax` is unset, the tax you send on each line is stored. Set it to `required` to have DualEntry calculate the tax, replacing the tax on every line before it saves the record.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST.\n\n- For native VAT and GST, leave this field unset and send the rate and the tax on each line. Set it to `required` when a tax provider returns the tax.\n- The request fails with `422` when the result is DualEntry's own VAT or GST, when the calculation cannot finish, or when a required address is still missing.\n- When the record has a customer, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer.\n- If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n- When the record has a vendor, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company.\n- DualEntry stores only the ship addresses you sent."
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "check_number": {
            "default": "",
            "title": "Check Number",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "customer_id": {
            "description": "If this customer is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Customer Id",
            "type": "integer"
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "bank_or_undeposited_account_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Bank Or Undeposited Account Amount"
          },
          "undeposited_funds_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicCashSaleItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "customer_id",
          "currency_iso_4217_code",
          "exchange_rate",
          "bank_or_undeposited_account_amount"
        ],
        "title": "PublicCashSaleSchemaUpdateIn",
        "type": "object"
      },
      "PagedPublicCashSaleItemOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCashSaleItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicCashSaleItemOut",
        "type": "object"
      },
      "PublicCustomerPaymentListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "invoice_number": {
            "title": "Invoice Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "customer_credit_number": {
            "title": "Customer Credit Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicCustomerPaymentListFilterSchema",
        "type": "object"
      },
      "PagedPublicCustomerPaymentSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomerPaymentSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicCustomerPaymentSchemaOut",
        "type": "object"
      },
      "PublicCustomerPaymentItemOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "invoice_number": {
            "title": "Invoice Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_credit_number": {
            "title": "Customer Credit Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "journal_entry_line_id": {
            "title": "Journal Entry Line Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "intercompany_journal_entry_line_id": {
            "title": "Intercompany Journal Entry Line Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_refund_line_id": {
            "title": "Customer Refund Line Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "account_id": {
            "title": "Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "description": {
            "title": "Description",
            "type": [
              "string",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "bank_or_undeposited_account_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Bank Or Undeposited Account Amount",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "position",
          "bank_or_undeposited_account_amount"
        ],
        "title": "PublicCustomerPaymentItemOut",
        "type": "object"
      },
      "PublicCustomerPaymentSchemaOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "transaction_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Transaction Ids",
            "type": "array"
          },
          "bank_match_status": {
            "title": "Bank Match Status",
            "type": [
              "string",
              "null"
            ]
          },
          "reconciliation_status": {
            "title": "Reconciliation Status",
            "type": [
              "string",
              "null"
            ]
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomerPaymentItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "check_number": {
            "title": "Check Number",
            "type": "string"
          },
          "date": {
            "description": "Posting date (GL date) - the date when the transaction is recorded in the general ledger",
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "description": "Transaction date (inception date) - the date when the transaction actually occurred",
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "undeposited_funds_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "bank_or_undeposited_account_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Bank Or Undeposited Account Amount",
            "type": "string"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "unassigned_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Unassigned Amount",
            "type": "string"
          },
          "record_status": {
            "$ref": "#/components/schemas/core__constants__record_status__RecordStatus"
          },
          "customer_deposits": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomerDepositDataPublicSchema"
            },
            "title": "Customer Deposits",
            "type": "array"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "paper_check_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/core__models__paper_check__PaperCheck__RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "transaction_ids",
          "internal_id",
          "number",
          "account_number",
          "items",
          "company_id",
          "company_name",
          "company_currency",
          "memo",
          "check_number",
          "date",
          "transaction_date",
          "currency_iso_4217_code",
          "exchange_rate",
          "undeposited_funds_currency",
          "bank_or_undeposited_account_amount",
          "amount",
          "unassigned_amount",
          "record_status",
          "paper_check_status",
          "created_at",
          "updated_at"
        ],
        "title": "PublicCustomerPaymentSchemaOut",
        "type": "object"
      },
      "PublicCustomerPaymentItemIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "invoice_number": {
            "title": "Invoice Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_credit_number": {
            "title": "Customer Credit Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "journal_entry_line_id": {
            "title": "Journal Entry Line Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "intercompany_journal_entry_line_id": {
            "title": "Intercompany Journal Entry Line Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_refund_line_id": {
            "title": "Customer Refund Line Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "description": {
            "default": "",
            "title": "Description",
            "type": [
              "string",
              "null"
            ]
          },
          "amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          }
        },
        "required": [
          "amount",
          "position"
        ],
        "title": "PublicCustomerPaymentItemIn",
        "type": "object"
      },
      "PublicCustomerPaymentSchemaCreateIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "customer_id": {
            "description": "If this customer is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "check_number": {
            "title": "Check Number",
            "type": "string"
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "undeposited_funds_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "unassigned_amount": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "default": "0.00",
            "description": "Unassigned amount, in bank/undeposited currency",
            "title": "Unassigned Amount"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicCustomerPaymentItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "line_date_validation": {
            "default": true,
            "title": "Line Date Validation",
            "type": "boolean"
          }
        },
        "required": [
          "date",
          "company_id",
          "check_number",
          "currency_iso_4217_code",
          "exchange_rate",
          "memo"
        ],
        "title": "PublicCustomerPaymentSchemaCreateIn",
        "type": "object"
      },
      "PublicCustomerPaymentSchemaUpdateIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "customer_id": {
            "description": "If this customer is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "check_number": {
            "title": "Check Number",
            "type": "string"
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "undeposited_funds_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "unassigned_amount": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "default": "0.00",
            "description": "Unassigned amount, in bank/undeposited currency",
            "title": "Unassigned Amount"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicCustomerPaymentItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "line_date_validation": {
            "default": true,
            "title": "Line Date Validation",
            "type": "boolean"
          }
        },
        "required": [
          "date",
          "company_id",
          "check_number",
          "currency_iso_4217_code",
          "exchange_rate",
          "memo"
        ],
        "title": "PublicCustomerPaymentSchemaUpdateIn",
        "type": "object"
      },
      "PublicCustomerPaymentSchemaPatchIn": {
        "description": "Partial update payload for `PATCH /public/customer-payments/{number}/`.\n\nEvery field is optional: send only the fields you want to change.\nUnset fields are left untouched on the existing record.",
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "description": "If this customer is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "check_number": {
            "title": "Check Number",
            "type": [
              "string",
              "null"
            ]
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exchange Rate"
          },
          "undeposited_funds_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "unassigned_amount": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unassigned Amount"
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "title": "Items",
            "items": {
              "$ref": "#/components/schemas/PublicCustomerPaymentItemIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "attachments": {
            "title": "Attachments",
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "line_date_validation": {
            "title": "Line Date Validation",
            "type": [
              "boolean",
              "null"
            ]
          },
          "date": {
            "title": "Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicCustomerPaymentSchemaPatchIn",
        "type": "object"
      },
      "PagedPublicCustomerPaymentItemOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomerPaymentItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicCustomerPaymentItemOut",
        "type": "object"
      },
      "PublicVendorPaymentListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "integration_sources": {
            "title": "Integration Sources",
            "items": {
              "$ref": "#/components/schemas/IntegrationSourceSlug"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Source"
              },
              {
                "type": "null"
              }
            ],
            "description": "Filter records by creation source (manual or bank_match_ai)"
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "bill_number": {
            "title": "Bill Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "vendor_credit_number": {
            "title": "Vendor Credit Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "journal_entry_number": {
            "description": "Filter by the number of a journal entry this payment applies to.",
            "title": "Journal Entry Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicVendorPaymentListFilterSchema",
        "type": "object"
      },
      "Source": {
        "enum": [
          "manual",
          "bank_match_ai",
          "bank_match_rule",
          "banking",
          "payments"
        ],
        "title": "Source",
        "type": "string"
      },
      "PagedPublicVendorPaymentSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicVendorPaymentSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicVendorPaymentSchemaOut",
        "type": "object"
      },
      "PublicVendorPaymentItemOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "bill_number": {
            "title": "Bill Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_credit_number": {
            "title": "Vendor Credit Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "journal_entry_line_id": {
            "title": "Journal Entry Line Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "intercompany_journal_entry_line_id": {
            "title": "Intercompany Journal Entry Line Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "account_id": {
            "title": "Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "description": {
            "default": "",
            "title": "Description",
            "type": "string"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "bank_or_credit_card_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Bank Or Credit Card Amount",
            "type": "string"
          }
        },
        "required": [
          "id",
          "amount",
          "position",
          "bank_or_credit_card_amount"
        ],
        "title": "PublicVendorPaymentItemOut",
        "type": "object"
      },
      "PublicVendorPaymentSchemaOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "integration_remote_records": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/IntegrationRemoteRecordSchemaOut"
            },
            "title": "Integration Remote Records",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "transaction_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Transaction Ids",
            "type": "array"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicVendorPaymentItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": [
              "string",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "check_number": {
            "title": "Check Number",
            "type": "string"
          },
          "date": {
            "description": "Posting date (GL date) - the date when the transaction is recorded in the general ledger",
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "description": "Transaction date (inception date) - the date when the transaction actually occurred",
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "bank_or_credit_card_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Bank Or Credit Card Amount",
            "type": "string"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "record_status": {
            "$ref": "#/components/schemas/core__constants__record_status__RecordStatus"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "paper_check_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/core__models__paper_check__PaperCheck__RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Source"
              }
            ],
            "default": "manual",
            "description": "Creation source. manual means DualEntry. bank_match_ai means Bank Match Agent. bank_match_rule means a bank match rule."
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "transaction_ids",
          "internal_id",
          "number",
          "items",
          "company_id",
          "company_name",
          "company_currency",
          "memo",
          "check_number",
          "date",
          "transaction_date",
          "currency_iso_4217_code",
          "exchange_rate",
          "bank_or_credit_card_amount",
          "amount",
          "record_status",
          "paper_check_status",
          "created_at",
          "updated_at"
        ],
        "title": "PublicVendorPaymentSchemaOut",
        "type": "object"
      },
      "PublicVendorPaymentItemIn": {
        "properties": {
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "bill_number": {
            "title": "Bill Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_credit_number": {
            "title": "Vendor Credit Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "journal_entry_line_id": {
            "title": "Journal Entry Line Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "intercompany_journal_entry_line_id": {
            "title": "Intercompany Journal Entry Line Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "account_id": {
            "title": "Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "description": {
            "default": "",
            "title": "Description",
            "type": "string"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          }
        },
        "required": [
          "amount",
          "position"
        ],
        "title": "PublicVendorPaymentItemIn",
        "type": "object"
      },
      "PublicVendorPaymentSchemaCreateIn": {
        "description": "Create or replace a vendor payment.\n\nThe save posts a general ledger transaction.\nIt applies the payment to bills, vendor credits, and journal entry lines.\nIt computes realized, rounding, and matching gain or loss.\nIt posts an elimination transaction when the vendor is intercompany.\nIt creates a paper check when the payment method requires printing.\nA sent attachments list replaces the existing files.",
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "check_number": {
            "title": "Check Number",
            "type": "string"
          },
          "account_number": {
            "description": "Bank or credit card account number. Omit this when the applied amount is zero.",
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicVendorPaymentItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "bank_or_credit_card_amount": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "default": "0.00",
            "description": "Bank or credit card amount",
            "title": "Bank Or Credit Card Amount"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "line_date_validation": {
            "default": true,
            "title": "Line Date Validation",
            "type": "boolean"
          }
        },
        "required": [
          "date",
          "company_id",
          "check_number",
          "currency_iso_4217_code",
          "exchange_rate",
          "memo"
        ],
        "title": "PublicVendorPaymentSchemaCreateIn",
        "type": "object"
      },
      "PublicVendorPaymentSchemaUpdateIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "check_number": {
            "title": "Check Number",
            "type": "string"
          },
          "account_number": {
            "description": "Bank or credit card account number. Omit this when the applied amount is zero.",
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicVendorPaymentItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "bank_or_credit_card_amount": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "default": "0.00",
            "description": "Bank or credit card amount",
            "title": "Bank Or Credit Card Amount"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "line_date_validation": {
            "default": true,
            "title": "Line Date Validation",
            "type": "boolean"
          }
        },
        "required": [
          "date",
          "company_id",
          "check_number",
          "currency_iso_4217_code",
          "exchange_rate",
          "memo"
        ],
        "title": "PublicVendorPaymentSchemaUpdateIn",
        "type": "object"
      },
      "PublicVendorPaymentSchemaPatchIn": {
        "description": "Partial update for `PATCH /public/vendor-payments/{number}/`.\n\nSend only the fields you want to change. Unset fields stay as they are.\nThe save uses the same rules as a full update.\nPeriod locks, applied-payment checks, and approval workflow rules apply.\nA sent attachments list replaces the existing files. Omit attachments to keep them.\nA sent items list replaces the application lines. Omit items to keep them.",
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "check_number": {
            "title": "Check Number",
            "type": [
              "string",
              "null"
            ]
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exchange Rate"
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "title": "Items",
            "items": {
              "$ref": "#/components/schemas/PublicVendorPaymentItemIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "attachments": {
            "title": "Attachments",
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "bank_or_credit_card_amount": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bank Or Credit Card Amount"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "line_date_validation": {
            "title": "Line Date Validation",
            "type": [
              "boolean",
              "null"
            ]
          },
          "date": {
            "title": "Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicVendorPaymentSchemaPatchIn",
        "type": "object"
      },
      "PagedPublicVendorPaymentItemOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicVendorPaymentItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicVendorPaymentItemOut",
        "type": "object"
      },
      "PublicVendorPrepaymentListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "recurring_record_id": {
            "title": "Recurring Record Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicVendorPrepaymentListFilterSchema",
        "type": "object"
      },
      "PagedPublicVendorPrepaymentSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicVendorPrepaymentSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicVendorPrepaymentSchemaOut",
        "type": "object"
      },
      "PublicVendorPrepaymentSchemaOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "bank_match_status": {
            "title": "Bank Match Status",
            "type": [
              "string",
              "null"
            ]
          },
          "reconciliation_status": {
            "title": "Reconciliation Status",
            "type": [
              "string",
              "null"
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "transaction_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Transaction Ids",
            "type": "array"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": "integer"
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": "string"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "check_number": {
            "title": "Check Number",
            "type": "string"
          },
          "amount": {
            "description": "Total transaction amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "used_amount": {
            "description": "Amount that was already applied to Bills",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Used Amount",
            "type": "string"
          },
          "remaining_amount": {
            "description": "Amount that can be applied to Bills",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Remaining Amount",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "bank_or_undeposited_funds_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Bank Or Undeposited Funds Amount",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "record_status": {
            "$ref": "#/components/schemas/core__constants__record_status__RecordStatus"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "paper_check_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/core__models__paper_check__PaperCheck__RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "recurring_record_id": {
            "title": "Recurring Record Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "internal_id",
          "transaction_ids",
          "number",
          "company_id",
          "company_name",
          "company_currency",
          "vendor_id",
          "vendor_name",
          "account_number",
          "date",
          "transaction_date",
          "check_number",
          "amount",
          "used_amount",
          "remaining_amount",
          "currency_iso_4217_code",
          "exchange_rate",
          "bank_or_undeposited_funds_amount",
          "memo",
          "record_status",
          "paper_check_status",
          "created_at",
          "updated_at"
        ],
        "title": "PublicVendorPrepaymentSchemaOut",
        "type": "object"
      },
      "PublicVendorPrepaymentSchemaCreateIn": {
        "properties": {
          "financial_transaction_to_validate_match": {
            "title": "Financial Transaction To Validate Match",
            "type": [
              "integer",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "vendor_id": {
            "description": "If this vendor is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Vendor Id",
            "type": "integer"
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "check_number": {
            "title": "Check Number",
            "type": "string"
          },
          "amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "bank_or_undeposited_funds_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Bank Or Undeposited Funds Amount"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "vendor_id",
          "check_number",
          "amount",
          "currency_iso_4217_code",
          "exchange_rate",
          "bank_or_undeposited_funds_amount",
          "memo"
        ],
        "title": "PublicVendorPrepaymentSchemaCreateIn",
        "type": "object"
      },
      "PublicVendorPrepaymentSchemaUpdateIn": {
        "properties": {
          "financial_transaction_to_validate_match": {
            "title": "Financial Transaction To Validate Match",
            "type": [
              "integer",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "vendor_id": {
            "description": "If this vendor is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Vendor Id",
            "type": "integer"
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "check_number": {
            "title": "Check Number",
            "type": "string"
          },
          "amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "bank_or_undeposited_funds_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Bank Or Undeposited Funds Amount"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "vendor_id",
          "check_number",
          "amount",
          "currency_iso_4217_code",
          "exchange_rate",
          "bank_or_undeposited_funds_amount",
          "memo"
        ],
        "title": "PublicVendorPrepaymentSchemaUpdateIn",
        "type": "object"
      },
      "PublicVendorPrepaymentApplicationListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "bill_id": {
            "title": "Bill Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicVendorPrepaymentApplicationListFilterSchema",
        "type": "object"
      },
      "PagedPublicVendorPrepaymentApplicationSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicVendorPrepaymentApplicationSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicVendorPrepaymentApplicationSchemaOut",
        "type": "object"
      },
      "PublicVendorPrepaymentApplicationItemOut": {
        "properties": {
          "bill_number": {
            "title": "Bill Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "amount_due": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount Due",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          }
        },
        "required": [
          "amount",
          "amount_due",
          "position"
        ],
        "title": "PublicVendorPrepaymentApplicationItemOut",
        "type": "object"
      },
      "PublicVendorPrepaymentApplicationSchemaOut": {
        "properties": {
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "transaction_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Transaction Ids",
            "type": "array"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": "integer"
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": "string"
          },
          "vendor_prepayment_number": {
            "title": "Vendor Prepayment Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_credit_number": {
            "title": "Vendor Credit Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicVendorPrepaymentApplicationItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "internal_id",
          "transaction_ids",
          "number",
          "company_id",
          "company_name",
          "company_currency",
          "vendor_id",
          "vendor_name",
          "vendor_prepayment_number",
          "vendor_credit_number",
          "exchange_rate",
          "memo",
          "date",
          "transaction_date",
          "currency_iso_4217_code",
          "amount",
          "items",
          "record_status",
          "created_at",
          "updated_at"
        ],
        "title": "PublicVendorPrepaymentApplicationSchemaOut",
        "type": "object"
      },
      "PublicVendorPrepaymentApplicationItemIn": {
        "properties": {
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "bill_number": {
            "title": "Bill Number",
            "type": "integer"
          },
          "amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          }
        },
        "required": [
          "bill_number",
          "amount",
          "position"
        ],
        "title": "PublicVendorPrepaymentApplicationItemIn",
        "type": "object"
      },
      "PublicVendorPrepaymentApplicationSchemaCreateIn": {
        "properties": {
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "vendor_prepayment_number": {
            "title": "Vendor Prepayment Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_credit_number": {
            "title": "Vendor Credit Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicVendorPrepaymentApplicationItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "currency_iso_4217_code",
          "exchange_rate",
          "memo",
          "items"
        ],
        "title": "PublicVendorPrepaymentApplicationSchemaCreateIn",
        "type": "object"
      },
      "PublicVendorPrepaymentApplicationSchemaUpdateIn": {
        "properties": {
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "vendor_prepayment_number": {
            "title": "Vendor Prepayment Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_credit_number": {
            "title": "Vendor Credit Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicVendorPrepaymentApplicationItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "currency_iso_4217_code",
          "exchange_rate",
          "memo",
          "items"
        ],
        "title": "PublicVendorPrepaymentApplicationSchemaUpdateIn",
        "type": "object"
      },
      "PagedPublicVendorPrepaymentApplicationItemOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicVendorPrepaymentApplicationItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicVendorPrepaymentApplicationItemOut",
        "type": "object"
      },
      "PublicVendorCreditListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "ap_account_id": {
            "description": "Return vendor credits posted to any of these AP account IDs.",
            "title": "Ap Account Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "bill_number": {
            "title": "Bill Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicVendorCreditListFilterSchema",
        "type": "object"
      },
      "CreditedBillLineSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "bill_id": {
            "title": "Bill Id",
            "type": "integer"
          },
          "bill_number": {
            "title": "Bill Number",
            "type": "integer"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "bill_id",
          "bill_number",
          "position"
        ],
        "title": "CreditedBillLineSchemaOut",
        "type": "object"
      },
      "PagedPublicVendorCreditSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicVendorCreditSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicVendorCreditSchemaOut",
        "type": "object"
      },
      "PublicVendorCreditExpenseOut": {
        "description": "Output schema for vendor credit expense lines.",
        "properties": {
          "credited_bill_line_id": {
            "description": "ID of the bill line that this credit line reverses, or `null`.",
            "title": "Credited Bill Line Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxDataOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_billable": {
            "default": false,
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_id": {
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_markup_pct": {
            "title": "Billable Markup Pct",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "special_tax_treatment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpecialTaxTreatment"
              },
              {
                "type": "null"
              }
            ],
            "description": "Identifies an expense line whose full amount is import VAT."
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "quantity": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity",
            "type": "string"
          },
          "rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Rate",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "expense_description": {
            "title": "Expense Description",
            "type": "string"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "company_id": {
            "description": "Optional company for this line. If this company differs from the record `company_id`, DualEntry posts intercompany Due To/From and elimination entries. Omit this field, or set it equal to the header `company_id`, for a single-company line.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "withholding_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LineWithholdingTaxSchemaOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The withholding tax of the line, or `null` when the line has none. `amount` is the withheld amount in the record currency."
          },
          "payable_amount": {
            "description": "Line amount minus the withheld amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Payable Amount",
            "type": "string"
          },
          "credited_bill_line": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CreditedBillLineSchemaOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The bill line that this credit line reverses, or `null`."
          },
          "billable_customer_name": {
            "title": "Billable Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_project_name": {
            "title": "Billable Project Name",
            "type": [
              "string",
              "null"
            ]
          },
          "account_name": {
            "title": "Account Name",
            "type": [
              "string",
              "null"
            ]
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": [
              "string",
              "null"
            ]
          },
          "net_amount": {
            "description": "Net amount before tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Net Amount",
            "type": "string"
          },
          "tax_amount": {
            "description": "Calculated tax amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Tax Amount",
            "type": "string"
          },
          "gross_amount": {
            "description": "Calculated total amount including tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Gross Amount",
            "type": "string"
          },
          "amount": {
            "description": "Calculated total amount including tax named amount for backward compatibility",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Amount",
            "type": "string"
          }
        },
        "required": [
          "id",
          "quantity",
          "rate",
          "position",
          "expense_description",
          "payable_amount",
          "net_amount",
          "tax_amount",
          "gross_amount",
          "amount"
        ],
        "title": "PublicVendorCreditExpenseOut",
        "type": "object"
      },
      "PublicVendorCreditItemOut": {
        "description": "Output schema for vendor credit item lines.",
        "properties": {
          "credited_bill_line_id": {
            "description": "ID of the bill line that this credit line reverses, or `null`.",
            "title": "Credited Bill Line Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxDataOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_billable": {
            "default": false,
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_id": {
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_markup_pct": {
            "title": "Billable Markup Pct",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "item_id": {
            "title": "Item Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Rate",
            "type": "string"
          },
          "quantity": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "company_id": {
            "description": "Optional company for this line. If this company differs from the record `company_id`, DualEntry posts intercompany Due To/From and elimination entries. Omit this field, or set it equal to the header `company_id`, for a single-company line.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "item_type": {
            "title": "Item Type",
            "type": [
              "string",
              "null"
            ]
          },
          "hsn_sac_code": {
            "title": "Hsn Sac Code",
            "type": [
              "string",
              "null"
            ]
          },
          "withholding_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LineWithholdingTaxSchemaOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The withholding tax of the line, or `null` when the line has none. `amount` is the withheld amount in the record currency."
          },
          "payable_amount": {
            "description": "Line amount minus the withheld amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Payable Amount",
            "type": "string"
          },
          "credited_bill_line": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CreditedBillLineSchemaOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The bill line that this credit line reverses, or `null`."
          },
          "billable_customer_name": {
            "title": "Billable Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_project_name": {
            "title": "Billable Project Name",
            "type": [
              "string",
              "null"
            ]
          },
          "item_name": {
            "title": "Item Name",
            "type": [
              "string",
              "null"
            ]
          },
          "net_amount": {
            "description": "Net amount before tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Net Amount",
            "type": "string"
          },
          "tax_amount": {
            "description": "Calculated tax amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Tax Amount",
            "type": "string"
          },
          "gross_amount": {
            "description": "Calculated total amount including tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Gross Amount",
            "type": "string"
          },
          "amount": {
            "description": "Calculated total amount including tax named amount for backward compatibility",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Amount",
            "type": "string"
          }
        },
        "required": [
          "id",
          "position",
          "rate",
          "quantity",
          "memo",
          "payable_amount",
          "net_amount",
          "tax_amount",
          "gross_amount",
          "amount"
        ],
        "title": "PublicVendorCreditItemOut",
        "type": "object"
      },
      "PublicVendorCreditSchemaOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "withholding_tax_total": {
            "default": "0.00",
            "description": "Sum of the withheld amounts of the lines",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Withholding Tax Total",
            "type": "string"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "ship_from_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_to_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "supply_date": {
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxContextOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "transaction_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Transaction Ids",
            "type": "array"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "bill_number": {
            "title": "Bill Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "direct_expense_number": {
            "title": "Direct Expense Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "date": {
            "description": "Posting date (GL date) - the date when the transaction is recorded in the general ledger",
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "description": "Transaction date (inception date) - the date when the transaction actually occurred",
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": "integer"
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": "string"
          },
          "ap_account_id": {
            "title": "Ap Account Id",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "title": "Currency Iso 4217 Code",
            "type": [
              "string",
              "null"
            ]
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicVendorCreditItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "expenses": {
            "items": {
              "$ref": "#/components/schemas/PublicVendorCreditExpenseOut"
            },
            "title": "Expenses",
            "type": "array"
          },
          "amount": {
            "description": "Total transaction amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "used_amount": {
            "description": "Amount that was already applied to Bills through Vendor Refunds or Vendor Prepayment Applications",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Used Amount",
            "type": "string"
          },
          "remaining_amount": {
            "description": "Amount that can be applied to Bills through Vendor Refunds or Vendor Prepayment Applications",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Remaining Amount",
            "type": "string"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "supply_date",
          "tax",
          "transaction_ids",
          "internal_id",
          "number",
          "date",
          "transaction_date",
          "company_id",
          "company_name",
          "company_currency",
          "vendor_id",
          "vendor_name",
          "ap_account_id",
          "currency_iso_4217_code",
          "exchange_rate",
          "memo",
          "items",
          "expenses",
          "amount",
          "used_amount",
          "remaining_amount",
          "record_status",
          "created_at",
          "updated_at"
        ],
        "title": "PublicVendorCreditSchemaOut",
        "type": "object"
      },
      "PublicVendorCreditExpenseIn": {
        "description": "Input schema for vendor credit expense lines (for direct expenses).",
        "properties": {
          "credited_bill_line_id": {
            "description": "ID of the bill line that this credit line reverses. The credit line takes the withholding tax rate and the payable account of that bill line. On an update, a line that omits this field keeps its stored link, and `null` removes the link and the withholding tax.",
            "title": "Credited Bill Line Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxData"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_billable": {
            "default": false,
            "description": "When `true`, this line is billable to a customer. Requires `billable_customer_id`.",
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "description": "Customer to rebill for this line. Required when `is_billable` is `true`. Distinct from `customer_id` on expense lines.",
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_id": {
            "description": "Optional project for the billable line. When set with `billable_customer_id`, the project must belong to that customer.",
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_markup_pct": {
            "anyOf": [
              {
                "maximum": 1000.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional markup percent for the billable line (0-1000).",
            "title": "Billable Markup Pct"
          },
          "special_tax_treatment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpecialTaxTreatment"
              },
              {
                "type": "null"
              }
            ],
            "description": "Identifies an expense line whose full amount is import VAT."
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "quantity": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "title": "Quantity"
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "title": "Rate"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "expense_description": {
            "default": "",
            "title": "Expense Description",
            "type": "string"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "company_id": {
            "description": "Optional company for this line. If this company differs from the record `company_id`, DualEntry posts intercompany Due To/From and elimination entries. Omit this field, or set it equal to the header `company_id`, for a single-company line.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "account_number",
          "quantity",
          "rate",
          "position"
        ],
        "title": "PublicVendorCreditExpenseIn",
        "type": "object"
      },
      "PublicVendorCreditItemIn": {
        "description": "Input schema for vendor credit item lines (for products/services).",
        "properties": {
          "credited_bill_line_id": {
            "description": "ID of the bill line that this credit line reverses. The credit line takes the withholding tax rate and the payable account of that bill line. On an update, a line that omits this field keeps its stored link, and `null` removes the link and the withholding tax.",
            "title": "Credited Bill Line Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxData"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_billable": {
            "default": false,
            "description": "When `true`, this line is billable to a customer. Requires `billable_customer_id`.",
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "description": "Customer to rebill for this line. Required when `is_billable` is `true`. Distinct from `customer_id` on expense lines.",
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_id": {
            "description": "Optional project for the billable line. When set with `billable_customer_id`, the project must belong to that customer.",
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_markup_pct": {
            "anyOf": [
              {
                "maximum": 1000.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional markup percent for the billable line (0-1000).",
            "title": "Billable Markup Pct"
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "item_id": {
            "title": "Item Id",
            "type": "integer"
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "title": "Rate"
          },
          "quantity": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "title": "Quantity"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "company_id": {
            "description": "Optional company for this line. If this company differs from the record `company_id`, DualEntry posts intercompany Due To/From and elimination entries. Omit this field, or set it equal to the header `company_id`, for a single-company line.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "position",
          "item_id",
          "rate",
          "quantity"
        ],
        "title": "PublicVendorCreditItemIn",
        "type": "object"
      },
      "PublicVendorCreditSchemaCreateIn": {
        "description": "Input schema for creating Vendor Credit records.",
        "properties": {
          "ship_from_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_to_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "auto_calculate_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoCalculateTaxMode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Configures how to handle automatic tax calculations.\n\nIf `auto_calculate_tax` is unset, the tax you send on each line is stored. Set it to `required` to have DualEntry calculate the tax, replacing the tax on every line before it saves the record.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST.\n\n- For native VAT and GST, leave this field unset and send the rate and the tax on each line. Set it to `required` when a tax provider returns the tax.\n- The request fails with `422` when the result is DualEntry's own VAT or GST, when the calculation cannot finish, or when a required address is still missing.\n- When the record has a customer, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer.\n- If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n- When the record has a vendor, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company.\n- DualEntry stores only the ship addresses you sent."
          },
          "bill_number": {
            "title": "Bill Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "direct_expense_number": {
            "title": "Direct Expense Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "ap_account_id": {
            "description": "ID of the AP account. The default is the intercompany AP account on an intercompany vendor credit. On other vendor credits, it is the vendor default, then the company default, then the system AP account. The account must be an active accounts payable account of the vendor credit company or of no company.\n\nA `PUT` without this field keeps the stored account, unless it changes the vendor or the company. Send `null` to use the default.",
            "title": "Ap Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "description": "If this vendor is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Vendor Id",
            "type": "integer"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicVendorCreditItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "expenses": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicVendorCreditExpenseIn"
            },
            "title": "Expenses",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "vendor_id",
          "company_id",
          "currency_iso_4217_code",
          "exchange_rate"
        ],
        "title": "PublicVendorCreditSchemaCreateIn",
        "type": "object"
      },
      "PublicVendorCreditSchemaUpdateIn": {
        "description": "Input schema for updating Vendor Credit records.",
        "properties": {
          "ship_from_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_to_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "auto_calculate_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoCalculateTaxMode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Configures how to handle automatic tax calculations.\n\nIf `auto_calculate_tax` is unset, the tax you send on each line is stored. Set it to `required` to have DualEntry calculate the tax, replacing the tax on every line before it saves the record.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST.\n\n- For native VAT and GST, leave this field unset and send the rate and the tax on each line. Set it to `required` when a tax provider returns the tax.\n- The request fails with `422` when the result is DualEntry's own VAT or GST, when the calculation cannot finish, or when a required address is still missing.\n- When the record has a customer, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer.\n- If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n- When the record has a vendor, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company.\n- DualEntry stores only the ship addresses you sent."
          },
          "bill_number": {
            "title": "Bill Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "direct_expense_number": {
            "title": "Direct Expense Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "ap_account_id": {
            "description": "ID of the AP account. The default is the intercompany AP account on an intercompany vendor credit. On other vendor credits, it is the vendor default, then the company default, then the system AP account. The account must be an active accounts payable account of the vendor credit company or of no company.\n\nA `PUT` without this field keeps the stored account, unless it changes the vendor or the company. Send `null` to use the default.",
            "title": "Ap Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "description": "If this vendor is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Vendor Id",
            "type": "integer"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicVendorCreditItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "expenses": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicVendorCreditExpenseIn"
            },
            "title": "Expenses",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "vendor_id",
          "company_id",
          "currency_iso_4217_code",
          "exchange_rate"
        ],
        "title": "PublicVendorCreditSchemaUpdateIn",
        "type": "object"
      },
      "PagedPublicVendorCreditLineOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicVendorCreditLineOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicVendorCreditLineOut",
        "type": "object"
      },
      "PublicVendorCreditLineOut": {
        "description": "Unified V2 vendor credit line: one row of `vendor_credit_lines`, item or expense, tagged by `line_type`.\n\nItem-only fields (`item_id`, `item_name`, `memo`) are null on expense rows; expense-only fields\n(`account_number`, `account_name`, `expense_description`, `customer_*`, `vendor_*`) are null on item rows.",
        "properties": {
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "item_type": {
            "title": "Item Type",
            "type": [
              "string",
              "null"
            ]
          },
          "hsn_sac_code": {
            "title": "Hsn Sac Code",
            "type": [
              "string",
              "null"
            ]
          },
          "withholding_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LineWithholdingTaxSchemaOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The withholding tax of the line, or `null` when the line has none. `amount` is the withheld amount in the record currency."
          },
          "payable_amount": {
            "description": "Line amount minus the withheld amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Payable Amount",
            "type": "string"
          },
          "credited_bill_line_id": {
            "description": "ID of the bill line that this credit line reverses, or `null`.",
            "title": "Credited Bill Line Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "credited_bill_line": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CreditedBillLineSchemaOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The bill line that this credit line reverses, or `null`."
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxDataOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_billable": {
            "default": false,
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_customer_name": {
            "title": "Billable Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_project_id": {
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_name": {
            "title": "Billable Project Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_markup_pct": {
            "title": "Billable Markup Pct",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "special_tax_treatment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpecialTaxTreatment"
              },
              {
                "type": "null"
              }
            ],
            "description": "Identifies an expense line whose full amount is import VAT."
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "line_type": {
            "title": "Line Type",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Rate",
            "type": "string"
          },
          "quantity": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity",
            "type": "string"
          },
          "item_id": {
            "title": "Item Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "item_name": {
            "title": "Item Name",
            "type": [
              "string",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "account_name": {
            "title": "Account Name",
            "type": [
              "string",
              "null"
            ]
          },
          "expense_description": {
            "title": "Expense Description",
            "type": [
              "string",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "description": "Optional company for this line. If this company differs from the record `company_id`, DualEntry posts intercompany Due To/From and elimination entries. Omit this field, or set it equal to the header `company_id`, for a single-company line.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "net_amount": {
            "description": "Net amount before tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Net Amount",
            "type": "string"
          },
          "tax_amount": {
            "description": "Calculated tax amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Tax Amount",
            "type": "string"
          },
          "gross_amount": {
            "description": "Calculated total amount including tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Gross Amount",
            "type": "string"
          },
          "amount": {
            "description": "Calculated total amount including tax named amount for backward compatibility",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Amount",
            "type": "string"
          }
        },
        "required": [
          "payable_amount",
          "id",
          "line_type",
          "position",
          "rate",
          "quantity",
          "net_amount",
          "tax_amount",
          "gross_amount",
          "amount"
        ],
        "title": "PublicVendorCreditLineOut",
        "type": "object"
      },
      "PublicVendorRefundListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "vendor_credit_id": {
            "title": "Vendor Credit Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicVendorRefundListFilterSchema",
        "type": "object"
      },
      "PagedPublicVendorRefundSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicVendorRefundSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicVendorRefundSchemaOut",
        "type": "object"
      },
      "PublicVendorRefundItemOut": {
        "properties": {
          "vendor_credit_number": {
            "title": "Vendor Credit Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_prepayment_number": {
            "title": "Vendor Prepayment Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "bank_or_credit_card_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Bank Or Credit Card Amount",
            "type": "string"
          }
        },
        "required": [
          "amount",
          "position",
          "bank_or_credit_card_amount"
        ],
        "title": "PublicVendorRefundItemOut",
        "type": "object"
      },
      "PublicVendorRefundSchemaOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "transaction_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Transaction Ids",
            "type": "array"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicVendorRefundItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": "integer"
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "check_number": {
            "title": "Check Number",
            "type": "string"
          },
          "date": {
            "description": "Posting date (GL date) - the date when the transaction is recorded in the general ledger",
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "description": "Transaction date (inception date) - the date when the transaction actually occurred",
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "bank_or_credit_card_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Bank Or Credit Card Amount",
            "type": "string"
          },
          "amount": {
            "description": "Total transaction amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "record_status": {
            "$ref": "#/components/schemas/core__constants__record_status__RecordStatus"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "paper_check_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/core__models__paper_check__PaperCheck__RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "transaction_ids",
          "internal_id",
          "number",
          "account_number",
          "items",
          "company_id",
          "company_name",
          "company_currency",
          "vendor_id",
          "vendor_name",
          "memo",
          "check_number",
          "date",
          "transaction_date",
          "currency_iso_4217_code",
          "exchange_rate",
          "bank_or_credit_card_amount",
          "amount",
          "record_status",
          "paper_check_status",
          "created_at",
          "updated_at"
        ],
        "title": "PublicVendorRefundSchemaOut",
        "type": "object"
      },
      "PublicVendorRefundItemIn": {
        "properties": {
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_credit_number": {
            "title": "Vendor Credit Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_prepayment_number": {
            "title": "Vendor Prepayment Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          }
        },
        "required": [
          "amount",
          "position"
        ],
        "title": "PublicVendorRefundItemIn",
        "type": "object"
      },
      "PublicVendorRefundSchemaCreateIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "vendor_id": {
            "description": "If this vendor is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Vendor Id",
            "type": "integer"
          },
          "check_number": {
            "default": "",
            "title": "Check Number",
            "type": "string"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicVendorRefundItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "bank_or_credit_card_amount": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "default": "0.00",
            "description": "Bank or credit card amount",
            "title": "Bank Or Credit Card Amount"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "vendor_id",
          "account_number",
          "currency_iso_4217_code",
          "exchange_rate"
        ],
        "title": "PublicVendorRefundSchemaCreateIn",
        "type": "object"
      },
      "PublicVendorRefundSchemaUpdateIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "vendor_id": {
            "description": "If this vendor is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Vendor Id",
            "type": "integer"
          },
          "check_number": {
            "default": "",
            "title": "Check Number",
            "type": "string"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicVendorRefundItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "bank_or_credit_card_amount": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "default": "0.00",
            "description": "Bank or credit card amount",
            "title": "Bank Or Credit Card Amount"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "vendor_id",
          "account_number",
          "currency_iso_4217_code",
          "exchange_rate"
        ],
        "title": "PublicVendorRefundSchemaUpdateIn",
        "type": "object"
      },
      "PagedPublicVendorRefundItemOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicVendorRefundItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicVendorRefundItemOut",
        "type": "object"
      },
      "PublicDirectExpenseListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "integration_sources": {
            "title": "Integration Sources",
            "items": {
              "$ref": "#/components/schemas/IntegrationSourceSlug"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "account_number": {
            "description": "Filter by the number of the bank or credit card account.",
            "title": "Account Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "recurring_record_id": {
            "description": "Filter by the recurring template id.",
            "title": "Recurring Record Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicDirectExpenseListFilterSchema",
        "type": "object"
      },
      "PagedPublicDirectExpenseSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicDirectExpenseSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicDirectExpenseSchemaOut",
        "type": "object"
      },
      "PublicDirectExpenseSchemaOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "withholding_tax_total": {
            "default": "0.00",
            "description": "Sum of the withheld amounts of the lines",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Withholding Tax Total",
            "type": "string"
          },
          "withholding_tax_payable_account_id": {
            "description": "ID of the liability account for the withheld amounts of the record.",
            "title": "Withholding Tax Payable Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "ship_from_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_to_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "supply_date": {
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxContextOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "integration_remote_records": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/IntegrationRemoteRecordSchemaOut"
            },
            "title": "Integration Remote Records",
            "type": "array"
          },
          "approval_status": {
            "title": "Approval Status",
            "type": [
              "string",
              "null"
            ]
          },
          "next_approvers": {
            "title": "Next Approvers",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rejected_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectedBySchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "transaction_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Transaction Ids",
            "type": "array"
          },
          "bank_match_status": {
            "title": "Bank Match Status",
            "type": [
              "string",
              "null"
            ]
          },
          "reconciliation_status": {
            "title": "Reconciliation Status",
            "type": [
              "string",
              "null"
            ]
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicExpenseItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": "integer"
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": "string"
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "amount": {
            "description": "Total transaction amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "check_number": {
            "title": "Check Number",
            "type": "string"
          },
          "date": {
            "description": "Posting date (GL date) - the date when the transaction is recorded in the general ledger",
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "description": "Transaction date (inception date) - the date when the transaction actually occurred",
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "bank_or_credit_card_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Bank Or Credit Card Amount",
            "type": "string"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "$ref": "#/components/schemas/core__constants__record_status__RecordStatus"
          },
          "paper_check_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/core__models__paper_check__PaperCheck__RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "recurring_record_id": {
            "title": "Recurring Record Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "supply_date",
          "tax",
          "transaction_ids",
          "internal_id",
          "number",
          "items",
          "company_id",
          "company_name",
          "company_currency",
          "vendor_id",
          "vendor_name",
          "account_number",
          "amount",
          "memo",
          "check_number",
          "date",
          "transaction_date",
          "currency_iso_4217_code",
          "exchange_rate",
          "bank_or_credit_card_amount",
          "record_status",
          "paper_check_status",
          "created_at",
          "updated_at"
        ],
        "title": "PublicDirectExpenseSchemaOut",
        "type": "object"
      },
      "PublicExpenseItemOut": {
        "description": "Output schema for expense line items.",
        "properties": {
          "withholding_tax_rate_id": {
            "description": "ID of the withholding tax rate of the line, or `null` when the line has no withholding tax.",
            "title": "Withholding Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxDataOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_billable": {
            "default": false,
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_id": {
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_markup_pct": {
            "title": "Billable Markup Pct",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "special_tax_treatment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpecialTaxTreatment"
              },
              {
                "type": "null"
              }
            ],
            "description": "Identifies an expense line whose full amount is import VAT."
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "expense_description": {
            "title": "Expense Description",
            "type": "string"
          },
          "rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Rate",
            "type": "string"
          },
          "quantity": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity",
            "type": "string"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_id": {
            "description": "Optional company for this line. If this company differs from the record `company_id`, DualEntry posts intercompany Due To/From and elimination entries. Omit this field, or set it equal to the header `company_id`, for a single-company line.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "amortizable_assets": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AmortizableAssetRefOut"
            },
            "title": "Amortizable Assets",
            "type": "array"
          },
          "fixed_assets": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/FixedAssetRefOut"
            },
            "title": "Fixed Assets",
            "type": "array"
          },
          "withholding_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LineWithholdingTaxSchemaOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The withholding tax of the line, or `null` when the line has none. `amount` is the withheld amount in the record currency."
          },
          "payable_amount": {
            "description": "Line amount minus the withheld amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Payable Amount",
            "type": "string"
          },
          "billable_customer_name": {
            "title": "Billable Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_project_name": {
            "title": "Billable Project Name",
            "type": [
              "string",
              "null"
            ]
          },
          "bank_or_credit_card_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Bank Or Credit Card Amount",
            "type": "string"
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": [
              "string",
              "null"
            ]
          },
          "net_amount": {
            "description": "Net amount before tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Net Amount",
            "type": "string"
          },
          "tax_amount": {
            "description": "Calculated tax amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Tax Amount",
            "type": "string"
          },
          "gross_amount": {
            "description": "Calculated total amount including tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Gross Amount",
            "type": "string"
          },
          "amount": {
            "description": "Calculated total amount including tax named amount for backward compatibility",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Amount",
            "type": "string"
          }
        },
        "required": [
          "id",
          "position",
          "account_number",
          "expense_description",
          "rate",
          "quantity",
          "payable_amount",
          "bank_or_credit_card_amount",
          "net_amount",
          "tax_amount",
          "gross_amount",
          "amount"
        ],
        "title": "PublicExpenseItemOut",
        "type": "object"
      },
      "PublicDirectExpenseSchemaCreateIn": {
        "description": "Input schema for creating DirectExpense records.",
        "properties": {
          "withholding_tax_payable_account_id": {
            "description": "ID of the liability account for the withheld amounts. When you send `null`, or omit the field on create, DualEntry uses the `default_withholding_tax_payable_account_id` of the vendor. A record with withholding tax needs one of the two. On an update, an omitted value keeps the stored account.",
            "title": "Withholding Tax Payable Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "ship_from_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_to_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "auto_calculate_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoCalculateTaxMode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Configures how to handle automatic tax calculations.\n\nIf `auto_calculate_tax` is unset, the tax you send on each line is stored. Set it to `required` to have DualEntry calculate the tax, replacing the tax on every line before it saves the record.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST.\n\n- For native VAT and GST, leave this field unset and send the rate and the tax on each line. Set it to `required` when a tax provider returns the tax.\n- The request fails with `422` when the result is DualEntry's own VAT or GST, when the calculation cannot finish, or when a required address is still missing.\n- When the record has a customer, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer.\n- If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n- When the record has a vendor, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company.\n- DualEntry stores only the ship addresses you sent."
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "check_number": {
            "default": "",
            "title": "Check Number",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "vendor_id": {
            "description": "If this vendor is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Vendor Id",
            "type": "integer"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "default": "1.00",
            "title": "Exchange Rate"
          },
          "bank_or_credit_card_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Bank Or Credit Card Amount"
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicExpenseItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "vendor_id",
          "account_number",
          "currency_iso_4217_code",
          "bank_or_credit_card_amount"
        ],
        "title": "PublicDirectExpenseSchemaCreateIn",
        "type": "object"
      },
      "PublicExpenseItemIn": {
        "description": "Input schema for expense line items.",
        "properties": {
          "withholding_tax_rate_id": {
            "description": "ID of the withholding tax rate of the line, from `GET /withholding-tax-rates/`. The withheld amount is the line net amount times the rate. On an update, a line that omits this field keeps its stored rate, and `null` removes the withholding tax.",
            "title": "Withholding Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxData"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_billable": {
            "default": false,
            "description": "When `true`, this line is billable to a customer. Requires `billable_customer_id`.",
            "title": "Is Billable",
            "type": "boolean"
          },
          "billable_customer_id": {
            "description": "Customer to rebill for this line. Required when `is_billable` is `true`. Distinct from `customer_id` on expense lines.",
            "title": "Billable Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_project_id": {
            "description": "Optional project for the billable line. When set with `billable_customer_id`, the project must belong to that customer.",
            "title": "Billable Project Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_markup_pct": {
            "anyOf": [
              {
                "maximum": 1000.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional markup percent for the billable line (0-1000).",
            "title": "Billable Markup Pct"
          },
          "special_tax_treatment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpecialTaxTreatment"
              },
              {
                "type": "null"
              }
            ],
            "description": "Identifies an expense line whose full amount is import VAT."
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "expense_description": {
            "default": "",
            "title": "Expense Description",
            "type": "string"
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "title": "Rate"
          },
          "quantity": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "title": "Quantity"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicRecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_id": {
            "description": "Optional company for this line. If this company differs from the record `company_id`, DualEntry posts intercompany Due To/From and elimination entries. Omit this field, or set it equal to the header `company_id`, for a single-company line.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "position",
          "account_number",
          "rate",
          "quantity"
        ],
        "title": "PublicExpenseItemIn",
        "type": "object"
      },
      "PublicDirectExpenseSchemaUpdateIn": {
        "description": "Input schema for updating DirectExpense records.",
        "properties": {
          "withholding_tax_payable_account_id": {
            "description": "ID of the liability account for the withheld amounts. When you send `null`, or omit the field on create, DualEntry uses the `default_withholding_tax_payable_account_id` of the vendor. A record with withholding tax needs one of the two. On an update, an omitted value keeps the stored account.",
            "title": "Withholding Tax Payable Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "ship_from_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_to_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "auto_calculate_tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AutoCalculateTaxMode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Configures how to handle automatic tax calculations.\n\nIf `auto_calculate_tax` is unset, the tax you send on each line is stored. Set it to `required` to have DualEntry calculate the tax, replacing the tax on every line before it saves the record.\n\nThe calculation covers native US sales tax using DualEntry's tax engine. It also covers Avalara US sales tax, VAT, and GST.\n\n- For native VAT and GST, leave this field unset and send the rate and the tax on each line. Set it to `required` when a tax provider returns the tax.\n- The request fails with `422` when the result is DualEntry's own VAT or GST, when the calculation cannot finish, or when a required address is still missing.\n- When the record has a customer, DualEntry reads `shipping_address`, then `billing_address`, then the address saved on the customer.\n- If you send neither address, DualEntry copies the customer's saved address to `billing_address` and `shipping_address`.\n- When the record has a vendor, DualEntry reads `ship_from_address` and `ship_to_address`, then the addresses saved on the vendor and the company.\n- DualEntry stores only the ship addresses you sent."
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "check_number": {
            "default": "",
            "title": "Check Number",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "vendor_id": {
            "description": "If this vendor is intercompany, DualEntry also writes a transaction in the elimination company.",
            "title": "Vendor Id",
            "type": "integer"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "default": "1.00",
            "title": "Exchange Rate"
          },
          "bank_or_credit_card_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Bank Or Credit Card Amount"
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicExpenseItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "payment_method_id": {
            "title": "Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "vendor_id",
          "account_number",
          "currency_iso_4217_code",
          "bank_or_credit_card_amount"
        ],
        "title": "PublicDirectExpenseSchemaUpdateIn",
        "type": "object"
      },
      "PagedPublicExpenseItemOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicExpenseItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicExpenseItemOut",
        "type": "object"
      },
      "PublicBankTransferListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "debit_bank_account_number": {
            "title": "Debit Bank Account Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "credit_bank_account_number": {
            "title": "Credit Bank Account Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status_scope": {
            "title": "Approval Status Scope",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicBankTransferListFilterSchema",
        "type": "object"
      },
      "BaseCurrencyAnchor": {
        "enum": [
          "sending",
          "receiving"
        ],
        "title": "BaseCurrencyAnchor",
        "type": "string"
      },
      "PagedPublicBankTransferSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicBankTransferSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicBankTransferSchemaOut",
        "type": "object"
      },
      "PublicBankTransferSchemaOut": {
        "properties": {
          "bank_match_status": {
            "title": "Bank Match Status",
            "type": [
              "string",
              "null"
            ]
          },
          "reconciliation_status": {
            "title": "Reconciliation Status",
            "type": [
              "string",
              "null"
            ]
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_id": {
            "title": "Transaction Id",
            "type": "integer"
          },
          "debit_entry_id": {
            "title": "Debit Entry Id",
            "type": "integer"
          },
          "credit_entry_id": {
            "title": "Credit Entry Id",
            "type": "integer"
          },
          "date": {
            "description": "Posting date (GL date) - the date when the transaction is recorded in the general ledger",
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "description": "Transaction date (inception date) - the date when the transaction actually occurred",
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "debit_bank_account_number": {
            "title": "Debit Bank Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "credit_bank_account_number": {
            "title": "Credit Bank Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "amount": {
            "description": "Transfer amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "calculate_gain_loss": {
            "default": true,
            "title": "Calculate Gain Loss",
            "type": "boolean"
          },
          "base_currency_anchor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BaseCurrencyAnchor"
              },
              {
                "type": "null"
              }
            ]
          },
          "sending_base_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Sending Base Amount",
            "type": "string"
          },
          "receiving_base_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Receiving Base Amount",
            "type": "string"
          },
          "sending_base_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Sending Base Rate",
            "type": "string"
          },
          "receiving_base_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Receiving Base Rate",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "reference_number": {
            "title": "Reference Number",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "currency_iso_4217_code": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Currency Iso 4217 Code",
            "type": "array"
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "internal_id",
          "number",
          "transaction_id",
          "debit_entry_id",
          "credit_entry_id",
          "date",
          "transaction_date",
          "company_id",
          "company_name",
          "company_currency",
          "debit_bank_account_number",
          "credit_bank_account_number",
          "amount",
          "exchange_rate",
          "sending_base_amount",
          "receiving_base_amount",
          "sending_base_rate",
          "receiving_base_rate",
          "memo",
          "record_status",
          "created_at",
          "updated_at"
        ],
        "title": "PublicBankTransferSchemaOut",
        "type": "object"
      },
      "PublicBankTransferSchemaCreateIn": {
        "description": "Input schema for creating BankTransfer records.",
        "properties": {
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "debit_bank_account_number": {
            "title": "Debit Bank Account Number",
            "type": "integer"
          },
          "credit_bank_account_number": {
            "title": "Credit Bank Account Number",
            "type": "integer"
          },
          "amount": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "default": "1.00",
            "title": "Exchange Rate"
          },
          "calculate_gain_loss": {
            "default": true,
            "title": "Calculate Gain Loss",
            "type": "boolean"
          },
          "base_currency_anchor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BaseCurrencyAnchor"
              },
              {
                "type": "null"
              }
            ]
          },
          "sending_base_rate": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sending Base Rate"
          },
          "receiving_base_rate": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Receiving Base Rate"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "reference_number": {
            "title": "Reference Number",
            "maxLength": 128,
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "debit_bank_account_number",
          "credit_bank_account_number",
          "amount"
        ],
        "title": "PublicBankTransferSchemaCreateIn",
        "type": "object"
      },
      "PublicBankTransferSchemaUpdateIn": {
        "description": "Input schema for updating BankTransfer records.",
        "properties": {
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "debit_bank_account_number": {
            "title": "Debit Bank Account Number",
            "type": "integer"
          },
          "credit_bank_account_number": {
            "title": "Credit Bank Account Number",
            "type": "integer"
          },
          "amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "default": "1.00",
            "title": "Exchange Rate"
          },
          "calculate_gain_loss": {
            "default": true,
            "title": "Calculate Gain Loss",
            "type": "boolean"
          },
          "base_currency_anchor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BaseCurrencyAnchor"
              },
              {
                "type": "null"
              }
            ]
          },
          "sending_base_rate": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sending Base Rate"
          },
          "receiving_base_rate": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Receiving Base Rate"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "reference_number": {
            "title": "Reference Number",
            "maxLength": 128,
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "date",
          "company_id",
          "debit_bank_account_number",
          "credit_bank_account_number",
          "amount"
        ],
        "title": "PublicBankTransferSchemaUpdateIn",
        "type": "object"
      },
      "Origin": {
        "enum": [
          "manual",
          "integration",
          "initial_sync",
          "banking",
          "payments"
        ],
        "title": "Origin",
        "type": "string"
      },
      "PublicStatisticalJournalListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "account_id": {
            "title": "Account Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "account_number": {
            "title": "Account Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "line_account_id": {
            "title": "Line Account Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "line_account_number": {
            "title": "Line Account Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "period_start": {
            "title": "Period Start",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "period_end": {
            "title": "Period End",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "date_start": {
            "title": "Date Start",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "date_end": {
            "title": "Date End",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicStatisticalJournalListFilterSchema",
        "type": "object"
      },
      "PagedPublicStatisticalJournalListSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicStatisticalJournalListSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicStatisticalJournalListSchemaOut",
        "type": "object"
      },
      "PublicStatisticalJournalListSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "account_id": {
            "title": "Account Id",
            "type": "integer"
          },
          "account_name": {
            "title": "Account Name",
            "type": "string"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "period": {
            "format": "date",
            "title": "Period",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "total_quantity": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Total Quantity",
            "type": "string"
          },
          "unique_account_count": {
            "title": "Unique Account Count",
            "type": "integer"
          },
          "unique_company_count": {
            "title": "Unique Company Count",
            "type": "integer"
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "number",
          "account_id",
          "account_name",
          "account_number",
          "period",
          "date",
          "memo",
          "record_status",
          "total_quantity",
          "unique_account_count",
          "unique_company_count",
          "created_at",
          "updated_at"
        ],
        "title": "PublicStatisticalJournalListSchemaOut",
        "type": "object"
      },
      "PublicStatisticalJournalLineClassificationSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "line_id": {
            "title": "Line Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "line_name": {
            "title": "Line Name",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "PublicStatisticalJournalLineClassificationSchemaOut",
        "type": "object"
      },
      "PublicStatisticalJournalLineSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_name": {
            "title": "Company Name",
            "type": [
              "string",
              "null"
            ]
          },
          "account_id": {
            "title": "Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "account_name": {
            "title": "Account Name",
            "type": [
              "string",
              "null"
            ]
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "value": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Value",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "classifications": {
            "items": {
              "$ref": "#/components/schemas/PublicStatisticalJournalLineClassificationSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          }
        },
        "required": [
          "id",
          "value",
          "position",
          "memo",
          "classifications"
        ],
        "title": "PublicStatisticalJournalLineSchemaOut",
        "type": "object"
      },
      "PublicStatisticalJournalSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "account_id": {
            "title": "Account Id",
            "type": "integer"
          },
          "account_name": {
            "title": "Account Name",
            "type": "string"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "period": {
            "format": "date",
            "title": "Period",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "total_quantity": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Total Quantity",
            "type": "string"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicStatisticalJournalLineSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "number",
          "account_id",
          "account_name",
          "account_number",
          "period",
          "date",
          "memo",
          "record_status",
          "total_quantity",
          "items",
          "created_at",
          "updated_at"
        ],
        "title": "PublicStatisticalJournalSchemaOut",
        "type": "object"
      },
      "PublicStatisticalJournalClassificationSchemaIn": {
        "properties": {
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "line_id": {
            "title": "Line Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "title": "PublicStatisticalJournalClassificationSchemaIn",
        "type": "object"
      },
      "PublicStatisticalJournalLineSchemaIn": {
        "properties": {
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "account_id": {
            "title": "Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              }
            ],
            "title": "Value"
          },
          "position": {
            "default": 1,
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "classifications": {
            "items": {
              "$ref": "#/components/schemas/PublicStatisticalJournalClassificationSchemaIn"
            },
            "title": "Classifications",
            "type": "array"
          }
        },
        "required": [
          "value"
        ],
        "title": "PublicStatisticalJournalLineSchemaIn",
        "type": "object"
      },
      "PublicStatisticalJournalSchemaCreateIn": {
        "properties": {
          "account_id": {
            "title": "Account Id",
            "type": "integer"
          },
          "date": {
            "title": "Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicStatisticalJournalLineSchemaIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "account_id"
        ],
        "title": "PublicStatisticalJournalSchemaCreateIn",
        "type": "object"
      },
      "PublicStatisticalJournalSchemaUpdateIn": {
        "properties": {
          "account_id": {
            "title": "Account Id",
            "type": "integer"
          },
          "date": {
            "title": "Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicStatisticalJournalLineSchemaIn"
            },
            "title": "Items",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "account_id"
        ],
        "title": "PublicStatisticalJournalSchemaUpdateIn",
        "type": "object"
      },
      "PagedPublicStatisticalJournalLineSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicStatisticalJournalLineSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicStatisticalJournalLineSchemaOut",
        "type": "object"
      },
      "PublicRecurringInvoiceListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "recurring_type": {
            "title": "Recurring Type",
            "items": {
              "$ref": "#/components/schemas/RecurringType"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicRecurringInvoiceListFilterSchema",
        "type": "object"
      },
      "RecurringType": {
        "enum": [
          "automatic",
          "reminder"
        ],
        "title": "RecurringType",
        "type": "string"
      },
      "PagedPublicRecurringInvoiceSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicRecurringInvoiceSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicRecurringInvoiceSchemaOut",
        "type": "object"
      },
      "PublicRecurringInvoiceSchemaOut": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/RecurringStatus"
          },
          "record_payload": {
            "title": "Record Payload"
          },
          "rrule": {
            "title": "Rrule",
            "type": "string"
          },
          "next_occurrence": {
            "title": "Next Occurrence",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "last_generated": {
            "title": "Last Generated",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "errors": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Lists failures that stop this template from creating records. The key is the date in `next_occurrence` (`YYYY-MM-DD`) and the value is the error message.",
            "title": "Errors",
            "type": "object"
          },
          "recurring_type": {
            "$ref": "#/components/schemas/RecurringType"
          },
          "records": {
            "items": {
              "$ref": "#/components/schemas/PublicRecurringRecordSchemaOut"
            },
            "title": "Records",
            "type": "array"
          },
          "auto_send_invoice": {
            "title": "Auto Send Invoice",
            "type": "boolean"
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "internal_id",
          "number",
          "name",
          "memo",
          "date",
          "company_id",
          "company_name",
          "company_currency",
          "status",
          "record_payload",
          "rrule",
          "next_occurrence",
          "last_generated",
          "errors",
          "recurring_type",
          "records",
          "auto_send_invoice",
          "created_at",
          "updated_at"
        ],
        "title": "PublicRecurringInvoiceSchemaOut",
        "type": "object"
      },
      "PublicRecurringRecordSchemaOut": {
        "properties": {
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          }
        },
        "required": [
          "internal_id",
          "number",
          "date",
          "amount",
          "record_status"
        ],
        "title": "PublicRecurringRecordSchemaOut",
        "type": "object"
      },
      "RecurringStatus": {
        "enum": [
          "active",
          "inactive"
        ],
        "title": "RecurringStatus",
        "type": "string"
      },
      "PublicRecurringInvoiceSchemaCreateIn": {
        "properties": {
          "rrule": {
            "description": "Recurrence rule in iCalendar RRULE format (RFC 5545)",
            "examples": [
              "FREQ=DAILY",
              "FREQ=WEEKLY;BYDAY=MO,WE,FR",
              "FREQ=MONTHLY;BYMONTHDAY=15",
              "FREQ=YEARLY;BYMONTH=12;BYMONTHDAY=25",
              "FREQ=MONTHLY;BYDAY=1MO",
              "FREQ=WEEKLY;INTERVAL=2;BYDAY=TU,TH",
              "FREQ=MONTHLY;BYMONTHDAY=1;COUNT=12",
              "FREQ=DAILY;UNTIL=20241231T235959Z",
              "FREQ=WEEKLY;WKST=SU;BYDAY=MO,TU,WE,TH,FR"
            ],
            "format": "rrule",
            "maxLength": 500,
            "minLength": 8,
            "pattern": "^FREQ=(DAILY|WEEKLY|MONTHLY|YEARLY)(?:;.*)?$",
            "title": "Rrule",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "status": {
            "$ref": "#/components/schemas/RecurringStatus"
          },
          "recurring_type": {
            "$ref": "#/components/schemas/RecurringType"
          },
          "auto_send_invoice": {
            "default": false,
            "description": "Email each posted invoice to the customer. A reminder template stores the flag and does not send.",
            "title": "Auto Send Invoice",
            "type": "boolean"
          },
          "record_payload": {
            "$ref": "#/components/schemas/PublicInvoiceSchemaCreateIn"
          }
        },
        "required": [
          "rrule",
          "memo",
          "name",
          "date",
          "company_id",
          "status",
          "recurring_type",
          "record_payload"
        ],
        "title": "PublicRecurringInvoiceSchemaCreateIn",
        "type": "object"
      },
      "PublicRecurringInvoiceSchemaUpdateIn": {
        "properties": {
          "rrule": {
            "description": "Recurrence rule in iCalendar RRULE format (RFC 5545)",
            "examples": [
              "FREQ=DAILY",
              "FREQ=WEEKLY;BYDAY=MO,WE,FR",
              "FREQ=MONTHLY;BYMONTHDAY=15",
              "FREQ=YEARLY;BYMONTH=12;BYMONTHDAY=25",
              "FREQ=MONTHLY;BYDAY=1MO",
              "FREQ=WEEKLY;INTERVAL=2;BYDAY=TU,TH",
              "FREQ=MONTHLY;BYMONTHDAY=1;COUNT=12",
              "FREQ=DAILY;UNTIL=20241231T235959Z",
              "FREQ=WEEKLY;WKST=SU;BYDAY=MO,TU,WE,TH,FR"
            ],
            "format": "rrule",
            "maxLength": 500,
            "minLength": 8,
            "pattern": "^FREQ=(DAILY|WEEKLY|MONTHLY|YEARLY)(?:;.*)?$",
            "title": "Rrule",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "status": {
            "$ref": "#/components/schemas/RecurringStatus"
          },
          "recurring_type": {
            "$ref": "#/components/schemas/RecurringType"
          },
          "auto_send_invoice": {
            "default": false,
            "description": "Email each posted invoice to the customer. A reminder template stores the flag and does not send.",
            "title": "Auto Send Invoice",
            "type": "boolean"
          },
          "record_payload": {
            "$ref": "#/components/schemas/PublicInvoiceSchemaCreateIn"
          }
        },
        "required": [
          "rrule",
          "memo",
          "name",
          "date",
          "company_id",
          "status",
          "recurring_type",
          "record_payload"
        ],
        "title": "PublicRecurringInvoiceSchemaUpdateIn",
        "type": "object"
      },
      "PublicRecurringBillListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "recurring_type": {
            "title": "Recurring Type",
            "items": {
              "$ref": "#/components/schemas/RecurringType"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicRecurringBillListFilterSchema",
        "type": "object"
      },
      "PagedPublicRecurringBillSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicRecurringBillSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicRecurringBillSchemaOut",
        "type": "object"
      },
      "PublicRecurringBillSchemaOut": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/RecurringStatus"
          },
          "record_payload": {
            "title": "Record Payload"
          },
          "rrule": {
            "title": "Rrule",
            "type": "string"
          },
          "next_occurrence": {
            "title": "Next Occurrence",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "last_generated": {
            "title": "Last Generated",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "errors": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Lists failures that stop this template from creating records. The key is the date in `next_occurrence` (`YYYY-MM-DD`) and the value is the error message.",
            "title": "Errors",
            "type": "object"
          },
          "recurring_type": {
            "$ref": "#/components/schemas/RecurringType"
          },
          "records": {
            "items": {
              "$ref": "#/components/schemas/PublicRecurringRecordSchemaOut"
            },
            "title": "Records",
            "type": "array"
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "internal_id",
          "number",
          "name",
          "memo",
          "date",
          "company_id",
          "company_name",
          "company_currency",
          "status",
          "record_payload",
          "rrule",
          "next_occurrence",
          "last_generated",
          "errors",
          "recurring_type",
          "records",
          "created_at",
          "updated_at"
        ],
        "title": "PublicRecurringBillSchemaOut",
        "type": "object"
      },
      "PublicRecurringBillSchemaCreateIn": {
        "properties": {
          "rrule": {
            "description": "Recurrence rule in iCalendar RRULE format (RFC 5545)",
            "examples": [
              "FREQ=DAILY",
              "FREQ=WEEKLY;BYDAY=MO,WE,FR",
              "FREQ=MONTHLY;BYMONTHDAY=15",
              "FREQ=YEARLY;BYMONTH=12;BYMONTHDAY=25",
              "FREQ=MONTHLY;BYDAY=1MO",
              "FREQ=WEEKLY;INTERVAL=2;BYDAY=TU,TH",
              "FREQ=MONTHLY;BYMONTHDAY=1;COUNT=12",
              "FREQ=DAILY;UNTIL=20241231T235959Z",
              "FREQ=WEEKLY;WKST=SU;BYDAY=MO,TU,WE,TH,FR"
            ],
            "format": "rrule",
            "maxLength": 500,
            "minLength": 8,
            "pattern": "^FREQ=(DAILY|WEEKLY|MONTHLY|YEARLY)(?:;.*)?$",
            "title": "Rrule",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "status": {
            "$ref": "#/components/schemas/RecurringStatus"
          },
          "recurring_type": {
            "$ref": "#/components/schemas/RecurringType"
          },
          "record_payload": {
            "$ref": "#/components/schemas/PublicBillSchemaCreateIn"
          }
        },
        "required": [
          "rrule",
          "memo",
          "name",
          "date",
          "company_id",
          "status",
          "recurring_type",
          "record_payload"
        ],
        "title": "PublicRecurringBillSchemaCreateIn",
        "type": "object"
      },
      "PublicRecurringBillSchemaUpdateIn": {
        "properties": {
          "rrule": {
            "description": "Recurrence rule in iCalendar RRULE format (RFC 5545)",
            "examples": [
              "FREQ=DAILY",
              "FREQ=WEEKLY;BYDAY=MO,WE,FR",
              "FREQ=MONTHLY;BYMONTHDAY=15",
              "FREQ=YEARLY;BYMONTH=12;BYMONTHDAY=25",
              "FREQ=MONTHLY;BYDAY=1MO",
              "FREQ=WEEKLY;INTERVAL=2;BYDAY=TU,TH",
              "FREQ=MONTHLY;BYMONTHDAY=1;COUNT=12",
              "FREQ=DAILY;UNTIL=20241231T235959Z",
              "FREQ=WEEKLY;WKST=SU;BYDAY=MO,TU,WE,TH,FR"
            ],
            "format": "rrule",
            "maxLength": 500,
            "minLength": 8,
            "pattern": "^FREQ=(DAILY|WEEKLY|MONTHLY|YEARLY)(?:;.*)?$",
            "title": "Rrule",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "status": {
            "$ref": "#/components/schemas/RecurringStatus"
          },
          "recurring_type": {
            "$ref": "#/components/schemas/RecurringType"
          },
          "record_payload": {
            "$ref": "#/components/schemas/PublicBillSchemaCreateIn"
          }
        },
        "required": [
          "rrule",
          "memo",
          "name",
          "date",
          "company_id",
          "status",
          "recurring_type",
          "record_payload"
        ],
        "title": "PublicRecurringBillSchemaUpdateIn",
        "type": "object"
      },
      "PublicRecurringJournalEntryListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "recurring_type": {
            "title": "Recurring Type",
            "items": {
              "$ref": "#/components/schemas/RecurringType"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicRecurringJournalEntryListFilterSchema",
        "type": "object"
      },
      "PagedPublicRecurringJournalEntrySchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicRecurringJournalEntrySchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicRecurringJournalEntrySchemaOut",
        "type": "object"
      },
      "PublicRecurringJournalEntrySchemaOut": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/RecurringStatus"
          },
          "record_payload": {
            "title": "Record Payload"
          },
          "rrule": {
            "title": "Rrule",
            "type": "string"
          },
          "next_occurrence": {
            "title": "Next Occurrence",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "last_generated": {
            "title": "Last Generated",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "errors": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Lists failures that stop this template from creating records. The key is the date in `next_occurrence` (`YYYY-MM-DD`) and the value is the error message.",
            "title": "Errors",
            "type": "object"
          },
          "recurring_type": {
            "$ref": "#/components/schemas/RecurringType"
          },
          "records": {
            "items": {
              "$ref": "#/components/schemas/PublicRecurringRecordSchemaOut"
            },
            "title": "Records",
            "type": "array"
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "internal_id",
          "number",
          "name",
          "memo",
          "date",
          "company_id",
          "company_name",
          "company_currency",
          "status",
          "record_payload",
          "rrule",
          "next_occurrence",
          "last_generated",
          "errors",
          "recurring_type",
          "records",
          "created_at",
          "updated_at"
        ],
        "title": "PublicRecurringJournalEntrySchemaOut",
        "type": "object"
      },
      "PublicRecurringJournalEntrySchemaCreateIn": {
        "properties": {
          "rrule": {
            "description": "Recurrence rule in iCalendar RRULE format (RFC 5545)",
            "examples": [
              "FREQ=DAILY",
              "FREQ=WEEKLY;BYDAY=MO,WE,FR",
              "FREQ=MONTHLY;BYMONTHDAY=15",
              "FREQ=YEARLY;BYMONTH=12;BYMONTHDAY=25",
              "FREQ=MONTHLY;BYDAY=1MO",
              "FREQ=WEEKLY;INTERVAL=2;BYDAY=TU,TH",
              "FREQ=MONTHLY;BYMONTHDAY=1;COUNT=12",
              "FREQ=DAILY;UNTIL=20241231T235959Z",
              "FREQ=WEEKLY;WKST=SU;BYDAY=MO,TU,WE,TH,FR"
            ],
            "format": "rrule",
            "maxLength": 500,
            "minLength": 8,
            "pattern": "^FREQ=(DAILY|WEEKLY|MONTHLY|YEARLY)(?:;.*)?$",
            "title": "Rrule",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "status": {
            "$ref": "#/components/schemas/RecurringStatus"
          },
          "recurring_type": {
            "$ref": "#/components/schemas/RecurringType"
          },
          "record_payload": {
            "$ref": "#/components/schemas/PublicJournalEntrySchemaCreateIn"
          }
        },
        "required": [
          "rrule",
          "memo",
          "name",
          "date",
          "company_id",
          "status",
          "recurring_type",
          "record_payload"
        ],
        "title": "PublicRecurringJournalEntrySchemaCreateIn",
        "type": "object"
      },
      "PublicRecurringJournalEntrySchemaUpdateIn": {
        "properties": {
          "rrule": {
            "description": "Recurrence rule in iCalendar RRULE format (RFC 5545)",
            "examples": [
              "FREQ=DAILY",
              "FREQ=WEEKLY;BYDAY=MO,WE,FR",
              "FREQ=MONTHLY;BYMONTHDAY=15",
              "FREQ=YEARLY;BYMONTH=12;BYMONTHDAY=25",
              "FREQ=MONTHLY;BYDAY=1MO",
              "FREQ=WEEKLY;INTERVAL=2;BYDAY=TU,TH",
              "FREQ=MONTHLY;BYMONTHDAY=1;COUNT=12",
              "FREQ=DAILY;UNTIL=20241231T235959Z",
              "FREQ=WEEKLY;WKST=SU;BYDAY=MO,TU,WE,TH,FR"
            ],
            "format": "rrule",
            "maxLength": 500,
            "minLength": 8,
            "pattern": "^FREQ=(DAILY|WEEKLY|MONTHLY|YEARLY)(?:;.*)?$",
            "title": "Rrule",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "status": {
            "$ref": "#/components/schemas/RecurringStatus"
          },
          "recurring_type": {
            "$ref": "#/components/schemas/RecurringType"
          },
          "record_payload": {
            "$ref": "#/components/schemas/PublicJournalEntrySchemaCreateIn"
          }
        },
        "required": [
          "rrule",
          "memo",
          "name",
          "date",
          "company_id",
          "status",
          "recurring_type",
          "record_payload"
        ],
        "title": "PublicRecurringJournalEntrySchemaUpdateIn",
        "type": "object"
      },
      "PublicCompanyListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          },
          "parent_company_id": {
            "title": "Parent Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "title": "Currency Iso 4217 Code",
            "items": {
              "$ref": "#/components/schemas/SystemCurrencies"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          },
          "is_elimination": {
            "title": "Is Elimination",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "title": "PublicCompanyListFilterSchema",
        "type": "object"
      },
      "CompanySchemaOut": {
        "properties": {
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "vat_registration_numbers": {
            "items": {
              "$ref": "#/components/schemas/VatRegistrationItemSchemaOut"
            },
            "title": "Vat Registration Numbers",
            "type": "array"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "date_style": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DateStyle"
              },
              {
                "type": "null"
              }
            ],
            "description": "Date display style: short, medium, long, or custom. Null means the organization default applies."
          },
          "date_format_custom": {
            "description": "Day.js / Moment-style date pattern (max 16 chars). Tokens: YYYY, YY, MMMM, MMM, MM, M, DD, D. Separators: / . - , and space. Examples: DD.MM.YYYY, MM/DD/YYYY, YYYY-MM-DD. Not ICU or raw Intl.",
            "title": "Date Format Custom",
            "maxLength": 16,
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "parent_company_id": {
            "title": "Parent Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies",
            "description": "The ISO 4217 code of the currency of the company."
          },
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "Company address. Null when no address is on file."
          },
          "tin": {
            "default": "",
            "description": "Tax Identification Number. Empty string when unset.",
            "title": "Tin",
            "type": "string"
          },
          "tin_type": {
            "default": "",
            "description": "Type of TIN (ein, ssn, utr, rfc). Empty string when unset.",
            "title": "Tin Type",
            "type": "string"
          },
          "business_id": {
            "default": "",
            "description": "Business identifier. Empty when unset.",
            "title": "Business Id",
            "type": "string"
          },
          "is_active": {
            "description": "Whether the company is active.",
            "title": "Is Active",
            "type": "boolean"
          },
          "is_elimination": {
            "description": "Whether the company is an elimination company.",
            "title": "Is Elimination",
            "type": "boolean"
          },
          "fiscal_year_end_month": {
            "description": "Fiscal year end month (1=January, 12=December).",
            "title": "Fiscal Year End Month",
            "type": "integer"
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "id",
          "name",
          "parent_company_id",
          "currency_iso_4217_code",
          "is_active",
          "is_elimination",
          "fiscal_year_end_month"
        ],
        "title": "CompanySchemaOut",
        "type": "object"
      },
      "DateStyle": {
        "enum": [
          "short",
          "medium",
          "long",
          "custom"
        ],
        "title": "DateStyle",
        "type": "string"
      },
      "PagedCompanySchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/CompanySchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedCompanySchemaOut",
        "type": "object"
      },
      "VatRegistrationItemSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "country": {
            "title": "Country",
            "type": "string"
          },
          "registration_number": {
            "title": "Registration Number",
            "type": "string"
          }
        },
        "required": [
          "id",
          "country",
          "registration_number"
        ],
        "title": "VatRegistrationItemSchemaOut",
        "type": "object"
      },
      "PublicAccountListFilterSchema": {
        "description": "Public API filter schema for the Chart of Accounts list endpoint; reuses internal filter surface.",
        "properties": {
          "integration_sources": {
            "title": "Integration Sources",
            "items": {
              "$ref": "#/components/schemas/IntegrationSourceSlug"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "excluded_id": {
            "description": "Account IDs to exclude from the response. Combines with id (include set minus excluded set).",
            "title": "Excluded Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "title": "Description",
            "type": [
              "string",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "account_types": {
            "title": "Account Types",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "excluded_account_types": {
            "description": "Account types to exclude from the response. Combines with `account_types` (include set minus excluded set).",
            "title": "Excluded Account Types",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          },
          "is_system": {
            "title": "Is System",
            "type": [
              "boolean",
              "null"
            ]
          },
          "is_monetary": {
            "title": "Is Monetary",
            "type": [
              "boolean",
              "null"
            ]
          },
          "company_id": {
            "description": "Only filters by `company_id` field used in Bank and Credit Card accounts.",
            "title": "Company Id",
            "items": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "const": "null",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "uniqueItems": true,
            "type": [
              "array",
              "null"
            ]
          },
          "parent_account_id": {
            "title": "Parent Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "financial_account_id": {
            "description": "Only filters by `financial_account_id` field used in Bank and Credit Card accounts.",
            "title": "Financial Account Id",
            "items": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "const": "null",
                  "type": "string"
                }
              ]
            },
            "uniqueItems": true,
            "type": [
              "array",
              "null"
            ]
          },
          "no_financial_account": {
            "title": "No Financial Account",
            "type": [
              "boolean",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "title": "Currency Iso 4217 Code",
            "items": {
              "$ref": "#/components/schemas/SystemCurrencies"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "category_1099": {
            "title": "Category 1099",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "ebitda_category": {
            "title": "Ebitda Category",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "should_sync_pending": {
            "title": "Should Sync Pending",
            "type": [
              "boolean",
              "null"
            ]
          },
          "company_id_access": {
            "description": "A combined filter by `company_id_access`, and the `company_id` field used in Bank and Credit Card accounts.",
            "title": "Company Id Access",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "numbers": {
            "title": "Numbers",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "names": {
            "title": "Names",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "system_ref": {
            "title": "System Ref",
            "items": {
              "$ref": "#/components/schemas/SystemAccountNames"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "exclude_mapped_to_other_companies": {
            "description": "When set to a `company_id`, only returns accounts that are completely unmapped (no `company_id` and no AccountCompanyAccess). Used during migration to avoid selecting accounts already mapped to any company.",
            "title": "Exclude Mapped To Other Companies",
            "type": [
              "integer",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicAccountListFilterSchema",
        "type": "object"
      },
      "SystemAccountNames": {
        "enum": [
          "Accounts Receivable",
          "IC Accounts Receivable",
          "IC Due From",
          "Vendor Deposits",
          "Undeposited Funds",
          "Unapplied Cash Payments",
          "Accumulated Depreciation",
          "Accounts Payable",
          "IC Accounts Payable",
          "IC Due To",
          "Customer Deposits",
          "Tax Payable",
          "Accrued Purchases",
          "Deferred Revenue",
          "Unapplied Cash Receipts",
          "Cumulative Translation Adjustment - Elimination",
          "Cumulative Translation Adjustment",
          "Retained Earnings",
          "Net Income",
          "Realized Gain/Loss",
          "Unrealized Gain/Loss",
          "Matching Gain/Loss",
          "Rounding Gain/Loss"
        ],
        "title": "SystemAccountNames",
        "type": "string"
      },
      "AccountType": {
        "enum": [
          "bank",
          "accounts_receivable",
          "other_current_asset",
          "fixed_asset",
          "unbilled_receivable",
          "deferred_expense",
          "other_asset",
          "investment",
          "accounts_payable",
          "credit_card",
          "deferred_revenue",
          "long_term_liability",
          "other_current_liability",
          "equity",
          "income",
          "cost_of_goods_sold",
          "expense",
          "other_income",
          "other_expense",
          "statistical"
        ],
        "title": "AccountType",
        "type": "string"
      },
      "Category1099": {
        "enum": [
          "NEC-Box 1",
          "MISC-Box 1",
          "MISC-Box 2",
          "MISC-Box 3",
          "MISC-Box 4",
          "MISC-Box 5",
          "MISC-Box 6",
          "MISC-Box 8",
          "MISC-Box 9",
          "MISC-Box 10",
          "MISC-Box 11",
          "MISC-Box 12",
          "MISC-Box 14",
          "MISC-Box 15",
          "INT-Box 1",
          "INT-Box 2",
          "INT-Box 3",
          "DIV-Box 1a",
          "DIV-Box 1b",
          "DIV-Box 2a",
          "DIV-Box 2b",
          "DIV-Box 2c",
          "DIV-Box 2d",
          "DIV-Box 2e",
          "DIV-Box 2f",
          "DIV-Box 3",
          "DIV-Box 4",
          "DIV-Box 5",
          "DIV-Box 6",
          "DIV-Box 7",
          "DIV-Box 8",
          "DIV-Box 9",
          "DIV-Box 10",
          "DIV-Box 12",
          "DIV-Box 13"
        ],
        "title": "Category1099",
        "type": "string"
      },
      "PagedPublicAccountSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicAccountSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicAccountSchemaOut",
        "type": "object"
      },
      "PublicAccountSchemaOut": {
        "properties": {
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "type": [
              "string",
              "null"
            ]
          },
          "next_approvers": {
            "title": "Next Approvers",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rejected_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectedBySchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "is_system": {
            "title": "Is System",
            "type": "boolean"
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "parent_account_id": {
            "title": "Parent Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "account_type": {
            "$ref": "#/components/schemas/AccountType"
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ],
            "description": "The ISO 4217 code of the currency of the account. Only available for bank type accounts."
          },
          "category_1099": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Category1099"
              },
              {
                "const": "",
                "type": "string"
              }
            ],
            "title": "Category 1099"
          },
          "system_ref": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemAccountNames"
              },
              {
                "type": "null"
              }
            ]
          },
          "monetary_distinction": {
            "enum": [
              "monetary",
              "non_monetary"
            ],
            "title": "Monetary Distinction",
            "type": "string"
          },
          "default_classification_line_ids": {
            "title": "Default Classification Line Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "id",
          "name",
          "number",
          "description",
          "is_active",
          "is_system",
          "company_id",
          "parent_account_id",
          "account_type",
          "currency_iso_4217_code",
          "category_1099",
          "system_ref",
          "monetary_distinction"
        ],
        "title": "PublicAccountSchemaOut",
        "type": "object"
      },
      "MonetaryDistinction": {
        "enum": [
          "monetary",
          "non_monetary"
        ],
        "title": "MonetaryDistinction",
        "type": "string"
      },
      "PublicAccountSchemaCreateIn": {
        "properties": {
          "account_type": {
            "$ref": "#/components/schemas/AccountType"
          },
          "bank_routing": {
            "title": "Bank Routing",
            "maxLength": 9,
            "type": [
              "string",
              "null"
            ]
          },
          "iban": {
            "title": "Iban",
            "type": [
              "string",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "maxLength": 256,
            "minLength": 2,
            "title": "Name",
            "type": "string"
          },
          "description": {
            "default": "",
            "maxLength": 512,
            "title": "Description",
            "type": "string"
          },
          "number": {
            "maximum": 9223372036854775807,
            "minimum": 1,
            "title": "Number",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "parent_account_id": {
            "title": "Parent Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "category_1099": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Category1099"
              },
              {
                "const": "",
                "type": "string"
              }
            ],
            "default": "",
            "title": "Category 1099"
          },
          "allowed_company_ids": {
            "description": "Company IDs allowed to use this account in transactions. Restricts a shared chart-of-accounts entry to specific entities within your organization. Omit for no company restrictions (bank and credit card accounts use company_id instead).",
            "example": [
              101,
              102
            ],
            "title": "Allowed Company Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "is_monetary": {
            "description": "Legacy boolean for monetary distinction. Send this or monetary_distinction. Create refuses the request when both are omitted.",
            "title": "Is Monetary",
            "type": [
              "boolean",
              "null"
            ]
          },
          "monetary_distinction": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MonetaryDistinction"
              },
              {
                "type": "null"
              }
            ],
            "description": "Whether the account is monetary or non-monetary. Send monetary or non_monetary. Create refuses the request when this and is_monetary are both omitted."
          },
          "bank_alias": {
            "title": "Bank Alias",
            "maxLength": 256,
            "type": [
              "string",
              "null"
            ]
          },
          "bank_account_number": {
            "title": "Bank Account Number",
            "maxLength": 20,
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "start_bank_match_date": {
            "title": "Start Bank Match Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "default_classification_line_ids": {
            "title": "Default Classification Line Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "account_type",
          "name",
          "number",
          "currency_iso_4217_code",
          "is_active",
          "parent_account_id"
        ],
        "title": "PublicAccountSchemaCreateIn",
        "type": "object"
      },
      "PublicAccountSchemaUpdateIn": {
        "properties": {
          "account_type": {
            "$ref": "#/components/schemas/AccountType"
          },
          "bank_routing": {
            "title": "Bank Routing",
            "maxLength": 9,
            "type": [
              "string",
              "null"
            ]
          },
          "iban": {
            "title": "Iban",
            "type": [
              "string",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "maxLength": 256,
            "minLength": 2,
            "title": "Name",
            "type": "string"
          },
          "description": {
            "default": "",
            "maxLength": 512,
            "title": "Description",
            "type": "string"
          },
          "number": {
            "maximum": 9223372036854775807,
            "minimum": 1,
            "title": "Number",
            "type": "integer"
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "parent_account_id": {
            "title": "Parent Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "category_1099": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Category1099"
              },
              {
                "const": "",
                "type": "string"
              }
            ],
            "default": "",
            "title": "Category 1099"
          },
          "allowed_company_ids": {
            "description": "Company IDs allowed to use this account in transactions. Restricts a shared chart-of-accounts entry to specific entities within your organization. Omit for no company restrictions (bank and credit card accounts use company_id instead).",
            "example": [
              101,
              102
            ],
            "title": "Allowed Company Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "is_monetary": {
            "description": "Legacy boolean for monetary distinction. Omit this field and `monetary_distinction` to keep the stored value.",
            "title": "Is Monetary",
            "type": [
              "boolean",
              "null"
            ]
          },
          "monetary_distinction": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MonetaryDistinction"
              },
              {
                "type": "null"
              }
            ],
            "description": "Whether the account is monetary or non-monetary. Send `monetary` or `non_monetary`. Omit this field and `is_monetary` to keep the stored value. A change is refused when the account has posted transactions."
          },
          "bank_alias": {
            "title": "Bank Alias",
            "maxLength": 256,
            "type": [
              "string",
              "null"
            ]
          },
          "bank_account_number": {
            "title": "Bank Account Number",
            "maxLength": 20,
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "start_bank_match_date": {
            "title": "Start Bank Match Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "default_classification_line_ids": {
            "title": "Default Classification Line Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "account_type",
          "name",
          "number",
          "currency_iso_4217_code",
          "is_active",
          "parent_account_id"
        ],
        "title": "PublicAccountSchemaUpdateIn",
        "type": "object"
      },
      "PublicAccountBalanceFilterSchema": {
        "properties": {
          "company_id": {
            "description": "Company to report on. Balances are in this company's base currency.",
            "title": "Company Id",
            "type": "integer"
          },
          "as_of_date": {
            "description": "Report date. Balance-sheet accounts report through this date; income-statement accounts report from the fiscal year start.",
            "format": "date",
            "title": "As Of Date",
            "type": "string"
          }
        },
        "required": [
          "company_id",
          "as_of_date"
        ],
        "title": "PublicAccountBalanceFilterSchema",
        "type": "object"
      },
      "PagedPublicAccountBalanceSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicAccountBalanceSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicAccountBalanceSchemaOut",
        "type": "object"
      },
      "PublicAccountBalanceSchemaOut": {
        "properties": {
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "account_id": {
            "title": "Account Id",
            "type": "integer"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "account_name": {
            "title": "Account Name",
            "type": "string"
          },
          "account_type": {
            "$ref": "#/components/schemas/AccountType",
            "description": "Income-statement types carry a fiscal-year-to-date balance. All other types carry a balance as of the report date."
          },
          "as_of_date": {
            "format": "date",
            "title": "As Of Date",
            "type": "string"
          },
          "balance": {
            "description": "Balance in the company's base currency. A debit balance is positive, a credit balance is negative.",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Balance",
            "type": "string"
          },
          "currency": {
            "description": "The company's base currency.",
            "title": "Currency",
            "type": "string"
          }
        },
        "required": [
          "company_id",
          "company_name",
          "account_id",
          "account_number",
          "account_name",
          "account_type",
          "as_of_date",
          "balance",
          "currency"
        ],
        "title": "PublicAccountBalanceSchemaOut",
        "type": "object"
      },
      "PublicGeneralLedgerFilterSchema": {
        "properties": {
          "limit": {
            "default": 100,
            "description": "Number of rows to return (capped at 100)",
            "maximum": 100,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "cursor": {
            "description": "Opaque cursor from a previous response's next_cursor. Omit for the first page. Pass the same `company_id`, `account_id`, `start_date`, and `end_date` on every page; changing filters mid-walk is undefined.",
            "title": "Cursor",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "description": "Filter to these company ids. Intersected with the API key's company access.",
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "account_id": {
            "description": "Filter to these account ids.",
            "title": "Account Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "description": "Inclusive posting-date lower bound.",
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "description": "Inclusive posting-date upper bound.",
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicGeneralLedgerFilterSchema",
        "type": "object"
      },
      "PublicGeneralLedgerPageOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicGeneralLedgerRowOut"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "description": "Pass as cursor on the next request. Null when there are no more rows.",
            "title": "Next Cursor",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items"
        ],
        "title": "PublicGeneralLedgerPageOut",
        "type": "object"
      },
      "PublicGeneralLedgerRowOut": {
        "properties": {
          "line_id": {
            "title": "Line Id",
            "type": "string"
          },
          "entry_id": {
            "title": "Entry Id",
            "type": "integer"
          },
          "transaction_id": {
            "title": "Transaction Id",
            "type": "integer"
          },
          "transaction_record_id": {
            "title": "Transaction Record Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "offset_entry_id": {
            "title": "Offset Entry Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "account_id": {
            "title": "Account Id",
            "type": "integer"
          },
          "account_code": {
            "title": "Account Code",
            "type": [
              "string",
              "null"
            ]
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "string",
              "null"
            ]
          },
          "account_name": {
            "title": "Account Name",
            "type": [
              "string",
              "null"
            ]
          },
          "account_type": {
            "title": "Account Type",
            "type": [
              "string",
              "null"
            ]
          },
          "account_category": {
            "title": "Account Category",
            "type": [
              "string",
              "null"
            ]
          },
          "account_hierarchy_1": {
            "title": "Account Hierarchy 1",
            "type": [
              "string",
              "null"
            ]
          },
          "account_hierarchy_2": {
            "title": "Account Hierarchy 2",
            "type": [
              "string",
              "null"
            ]
          },
          "account_hierarchy_3": {
            "title": "Account Hierarchy 3",
            "type": [
              "string",
              "null"
            ]
          },
          "account_hierarchy_4": {
            "title": "Account Hierarchy 4",
            "type": [
              "string",
              "null"
            ]
          },
          "account_hierarchy_5": {
            "title": "Account Hierarchy 5",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": [
              "string",
              "null"
            ]
          },
          "entity": {
            "title": "Entity",
            "type": [
              "string",
              "null"
            ]
          },
          "company_is_elimination": {
            "title": "Company Is Elimination",
            "type": [
              "boolean",
              "null"
            ]
          },
          "transaction_type": {
            "title": "Transaction Type",
            "type": [
              "string",
              "null"
            ]
          },
          "doc": {
            "title": "Doc",
            "type": [
              "string",
              "null"
            ]
          },
          "posting_date": {
            "title": "Posting Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "accounting_date": {
            "title": "Accounting Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "period": {
            "title": "Period",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          },
          "counterparty": {
            "title": "Counterparty",
            "type": [
              "string",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "line_memo": {
            "title": "Line Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "reference_number": {
            "title": "Reference Number",
            "type": [
              "string",
              "null"
            ]
          },
          "check_number": {
            "title": "Check Number",
            "type": [
              "string",
              "null"
            ]
          },
          "offset_account_number": {
            "title": "Offset Account Number",
            "type": [
              "string",
              "null"
            ]
          },
          "offset_account_name": {
            "title": "Offset Account Name",
            "type": [
              "string",
              "null"
            ]
          },
          "offset_account_is_split": {
            "title": "Offset Account Is Split",
            "type": [
              "boolean",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "title": "Currency Iso 4217 Code",
            "type": [
              "string",
              "null"
            ]
          },
          "base_currency": {
            "title": "Base Currency",
            "type": [
              "string",
              "null"
            ]
          },
          "entity_currency": {
            "title": "Entity Currency",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_currency": {
            "title": "Transaction Currency",
            "type": [
              "string",
              "null"
            ]
          },
          "exchange_rate": {
            "title": "Exchange Rate",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "amount": {
            "title": "Amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "company_base_amount": {
            "title": "Company Base Amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_currency_amount": {
            "title": "Transaction Currency Amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "direction": {
            "title": "Direction",
            "type": [
              "integer",
              "null"
            ]
          },
          "debit": {
            "title": "Debit",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "credit": {
            "title": "Credit",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "total": {
            "title": "Total",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "customer_unique_id": {
            "title": "Customer Unique Id",
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": [
              "string",
              "null"
            ]
          },
          "line_customer_id": {
            "title": "Line Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "line_customer_name": {
            "title": "Line Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "line_customer_unique_id": {
            "title": "Line Customer Unique Id",
            "type": [
              "string",
              "null"
            ]
          },
          "line_vendor_id": {
            "title": "Line Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "line_vendor_name": {
            "title": "Line Vendor Name",
            "type": [
              "string",
              "null"
            ]
          },
          "classifications": {
            "title": "Classifications",
            "type": [
              "string",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "type": [
              "string",
              "null"
            ]
          },
          "created_date": {
            "title": "Created Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "modified_date": {
            "title": "Modified Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "created_by": {
            "title": "Created By",
            "type": [
              "string",
              "null"
            ]
          },
          "last_approved_by": {
            "title": "Last Approved By",
            "type": [
              "string",
              "null"
            ]
          },
          "last_approved_date": {
            "title": "Last Approved Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "ship_to_address_line1": {
            "title": "Ship To Address Line1",
            "type": [
              "string",
              "null"
            ]
          },
          "ship_to_address_line2": {
            "title": "Ship To Address Line2",
            "type": [
              "string",
              "null"
            ]
          },
          "ship_to_city": {
            "title": "Ship To City",
            "type": [
              "string",
              "null"
            ]
          },
          "ship_to_state": {
            "title": "Ship To State",
            "type": [
              "string",
              "null"
            ]
          },
          "ship_to_zip": {
            "title": "Ship To Zip",
            "type": [
              "string",
              "null"
            ]
          },
          "ship_to_country": {
            "title": "Ship To Country",
            "type": [
              "string",
              "null"
            ]
          },
          "is_billable": {
            "title": "Is Billable",
            "type": [
              "boolean",
              "null"
            ]
          },
          "billable_customer_name": {
            "title": "Billable Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_project_name": {
            "title": "Billable Project Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_status": {
            "title": "Billable Status",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_invoice_number": {
            "title": "Billable Invoice Number",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_invoice_id": {
            "title": "Billable Invoice Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billable_source_company_name": {
            "title": "Billable Source Company Name",
            "type": [
              "string",
              "null"
            ]
          },
          "billable_ar_company_name": {
            "title": "Billable Ar Company Name",
            "type": [
              "string",
              "null"
            ]
          },
          "intercompany_invoice_id": {
            "title": "Intercompany Invoice Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "intercompany_invoice_number": {
            "title": "Intercompany Invoice Number",
            "type": [
              "string",
              "null"
            ]
          },
          "is_adjusting_entry": {
            "title": "Is Adjusting Entry",
            "type": [
              "boolean",
              "null"
            ]
          },
          "is_intercompany": {
            "title": "Is Intercompany",
            "type": [
              "boolean",
              "null"
            ]
          },
          "eliminated": {
            "title": "Eliminated",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "required": [
          "line_id",
          "entry_id",
          "transaction_id",
          "account_id",
          "company_id"
        ],
        "title": "PublicGeneralLedgerRowOut",
        "type": "object"
      },
      "PublicTrialBalanceFilterSchema": {
        "properties": {
          "limit": {
            "default": 100,
            "description": "Max rows per page (capped at 100). May resume mid-account across months.",
            "maximum": 100,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "cursor": {
            "description": "Opaque cursor from a previous response's next_cursor. Omit for the first page. Pass the same `company_id`, `account_id`, `start_date`, and `end_date` on every page; changing filters mid-walk is undefined.",
            "title": "Cursor",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "description": "Filter to these company ids. Intersected with the API key's company access.",
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "account_id": {
            "description": "Filter to these account ids.",
            "title": "Account Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "description": "Inclusive lower bound on month periods (`period_start`). Day is ignored; grain is calendar month. Emit months start no earlier than 15 fiscal years before the company's last posting; an earlier `start_date` advances to that floor.",
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "description": "Inclusive upper bound on month periods (`period_start`). Day is ignored; grain is calendar month. An `end_date` before the 15-fiscal-year emit floor returns no rows.",
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicTrialBalanceFilterSchema",
        "type": "object"
      },
      "PublicTrialBalancePageOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicTrialBalanceRowOut"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "description": "Pass as cursor on the next request. Null when there are no more rows.",
            "title": "Next Cursor",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items"
        ],
        "title": "PublicTrialBalancePageOut",
        "type": "object"
      },
      "PublicTrialBalanceRowOut": {
        "properties": {
          "period": {
            "format": "date",
            "title": "Period",
            "type": "string"
          },
          "period_start": {
            "format": "date",
            "title": "Period Start",
            "type": "string"
          },
          "account_id": {
            "title": "Account Id",
            "type": "integer"
          },
          "account_code": {
            "title": "Account Code",
            "type": "string"
          },
          "account_name": {
            "title": "Account Name",
            "type": "string"
          },
          "account_type": {
            "title": "Account Type",
            "type": "string"
          },
          "account_category": {
            "title": "Account Category",
            "type": [
              "string",
              "null"
            ]
          },
          "account_hierarchy_1": {
            "title": "Account Hierarchy 1",
            "type": [
              "string",
              "null"
            ]
          },
          "account_hierarchy_2": {
            "title": "Account Hierarchy 2",
            "type": [
              "string",
              "null"
            ]
          },
          "account_hierarchy_3": {
            "title": "Account Hierarchy 3",
            "type": [
              "string",
              "null"
            ]
          },
          "account_hierarchy_4": {
            "title": "Account Hierarchy 4",
            "type": [
              "string",
              "null"
            ]
          },
          "account_hierarchy_5": {
            "title": "Account Hierarchy 5",
            "type": [
              "string",
              "null"
            ]
          },
          "parent_account_id": {
            "title": "Parent Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "entity": {
            "title": "Entity",
            "type": "string"
          },
          "company_is_elimination": {
            "title": "Company Is Elimination",
            "type": "boolean"
          },
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "opening_balance": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Opening Balance",
            "type": "string"
          },
          "period_debits": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Period Debits",
            "type": "string"
          },
          "period_credits": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Period Credits",
            "type": "string"
          },
          "closing_balance": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Closing Balance",
            "type": "string"
          },
          "adjustment_debits": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Adjustment Debits",
            "type": "string"
          },
          "adjustment_credits": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Adjustment Credits",
            "type": "string"
          }
        },
        "required": [
          "period",
          "period_start",
          "account_id",
          "account_code",
          "account_name",
          "account_type",
          "is_active",
          "company_id",
          "entity",
          "company_is_elimination",
          "currency",
          "opening_balance",
          "period_debits",
          "period_credits",
          "closing_balance",
          "adjustment_debits",
          "adjustment_credits"
        ],
        "title": "PublicTrialBalanceRowOut",
        "type": "object"
      },
      "PagedPublicChartOfAccountsRowOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicChartOfAccountsRowOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicChartOfAccountsRowOut",
        "type": "object"
      },
      "PublicChartOfAccountsRowOut": {
        "properties": {
          "account_id": {
            "title": "Account Id",
            "type": "integer"
          },
          "account_code": {
            "title": "Account Code",
            "type": "string"
          },
          "account_name": {
            "title": "Account Name",
            "type": "string"
          },
          "account_type": {
            "title": "Account Type",
            "type": "string"
          },
          "account_category": {
            "title": "Account Category",
            "type": [
              "string",
              "null"
            ]
          },
          "normal_balance": {
            "title": "Normal Balance",
            "type": [
              "string",
              "null"
            ]
          },
          "parent_account_id": {
            "title": "Parent Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "parent_account_code": {
            "title": "Parent Account Code",
            "type": [
              "string",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "account_hierarchy_1": {
            "title": "Account Hierarchy 1",
            "type": [
              "string",
              "null"
            ]
          },
          "account_hierarchy_2": {
            "title": "Account Hierarchy 2",
            "type": [
              "string",
              "null"
            ]
          },
          "account_hierarchy_3": {
            "title": "Account Hierarchy 3",
            "type": [
              "string",
              "null"
            ]
          },
          "account_hierarchy_4": {
            "title": "Account Hierarchy 4",
            "type": [
              "string",
              "null"
            ]
          },
          "account_hierarchy_5": {
            "title": "Account Hierarchy 5",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "account_id",
          "account_code",
          "account_name",
          "account_type",
          "is_active"
        ],
        "title": "PublicChartOfAccountsRowOut",
        "type": "object"
      },
      "PublicConsolidatedRatesFilterSchema": {
        "properties": {
          "limit": {
            "default": 100,
            "description": "Number of rows to return (capped at 100)",
            "maximum": 100,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "cursor": {
            "description": "Opaque cursor from a previous response's next_cursor. Omit for the first page.",
            "title": "Cursor",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicConsolidatedRatesFilterSchema",
        "type": "object"
      },
      "PublicConsolidatedRateRowOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "parent_company_id": {
            "title": "Parent Company Id",
            "type": "integer"
          },
          "company_currency_iso_4217_code": {
            "title": "Company Currency Iso 4217 Code",
            "type": "string"
          },
          "parent_currency_iso_4217_code": {
            "title": "Parent Currency Iso 4217 Code",
            "type": "string"
          },
          "period_date": {
            "format": "date",
            "title": "Period Date",
            "type": "string"
          },
          "locked": {
            "title": "Locked",
            "type": "boolean"
          },
          "current_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Current Rate",
            "type": "string"
          },
          "average_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Average Rate",
            "type": "string"
          },
          "historical_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Historical Rate",
            "type": "string"
          }
        },
        "required": [
          "id",
          "company_id",
          "parent_company_id",
          "company_currency_iso_4217_code",
          "parent_currency_iso_4217_code",
          "period_date",
          "locked",
          "current_rate",
          "average_rate",
          "historical_rate"
        ],
        "title": "PublicConsolidatedRateRowOut",
        "type": "object"
      },
      "PublicConsolidatedRatesPageOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicConsolidatedRateRowOut"
            },
            "title": "Items",
            "type": "array"
          },
          "next_cursor": {
            "description": "Pass as cursor on the next request. Null when there are no more rows.",
            "title": "Next Cursor",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items"
        ],
        "title": "PublicConsolidatedRatesPageOut",
        "type": "object"
      },
      "BudgetTypes": {
        "enum": [
          "income_statement",
          "balance_sheet"
        ],
        "title": "BudgetTypes",
        "type": "string"
      },
      "PublicBudgetListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "budget_type": {
            "title": "Budget Type",
            "items": {
              "$ref": "#/components/schemas/BudgetTypes"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "calendar_year": {
            "title": "Calendar Year",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "title": "PublicBudgetListFilterSchema",
        "type": "object"
      },
      "PagedPublicBudgetSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicBudgetSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicBudgetSchemaOut",
        "type": "object"
      },
      "PublicBudgetClassificationSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "line_id": {
            "title": "Line Id",
            "type": "integer"
          },
          "line_name": {
            "title": "Line Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "line_id",
          "line_name"
        ],
        "title": "PublicBudgetClassificationSchemaOut",
        "type": "object"
      },
      "PublicBudgetSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "budget_type": {
            "$ref": "#/components/schemas/BudgetTypes"
          },
          "calendar_year": {
            "title": "Calendar Year",
            "type": "integer"
          },
          "start_date": {
            "format": "date",
            "title": "Start Date",
            "type": "string"
          },
          "end_date": {
            "format": "date",
            "title": "End Date",
            "type": "string"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "actuals_offset_in_months": {
            "title": "Actuals Offset In Months",
            "type": [
              "integer",
              "null"
            ]
          },
          "classifications": {
            "items": {
              "$ref": "#/components/schemas/PublicBudgetClassificationSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "company_id",
          "company_name",
          "budget_type",
          "calendar_year",
          "start_date",
          "end_date",
          "record_status",
          "updated_at"
        ],
        "title": "PublicBudgetSchemaOut",
        "type": "object"
      },
      "BudgetCellSchemaOut": {
        "properties": {
          "account_id": {
            "title": "Account Id",
            "type": "integer"
          },
          "year": {
            "title": "Year",
            "type": "integer"
          },
          "month": {
            "title": "Month",
            "type": "integer"
          },
          "value": {
            "title": "Value",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "account_id",
          "year",
          "month"
        ],
        "title": "BudgetCellSchemaOut",
        "type": "object"
      },
      "GetBudgetCellsResponse": {
        "properties": {
          "cells": {
            "items": {
              "$ref": "#/components/schemas/BudgetCellSchemaOut"
            },
            "title": "Cells",
            "type": "array"
          },
          "meta": {
            "additionalProperties": true,
            "title": "Meta",
            "type": "object"
          }
        },
        "required": [
          "cells",
          "meta"
        ],
        "title": "GetBudgetCellsResponse",
        "type": "object"
      },
      "BudgetActualsCellSchemaOut": {
        "properties": {
          "account_id": {
            "title": "Account Id",
            "type": "integer"
          },
          "year": {
            "title": "Year",
            "type": "integer"
          },
          "month": {
            "title": "Month",
            "type": "integer"
          },
          "value": {
            "title": "Value",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "account_id",
          "year",
          "month"
        ],
        "title": "BudgetActualsCellSchemaOut",
        "type": "object"
      },
      "BudgetActualsMetaSchemaOut": {
        "properties": {
          "total_cells": {
            "title": "Total Cells",
            "type": "integer"
          },
          "budget_id": {
            "title": "Budget Id",
            "type": "integer"
          },
          "budget_type": {
            "title": "Budget Type",
            "type": "string"
          },
          "actuals_offset_in_months": {
            "title": "Actuals Offset In Months",
            "type": "integer"
          },
          "reference_date": {
            "title": "Reference Date",
            "type": "string"
          },
          "reference_year": {
            "title": "Reference Year",
            "type": "integer"
          },
          "budget_calendar_year": {
            "title": "Budget Calendar Year",
            "type": "integer"
          }
        },
        "required": [
          "total_cells",
          "budget_id",
          "budget_type",
          "actuals_offset_in_months",
          "reference_date",
          "reference_year",
          "budget_calendar_year"
        ],
        "title": "BudgetActualsMetaSchemaOut",
        "type": "object"
      },
      "BudgetActualsResponseSchemaOut": {
        "properties": {
          "cells": {
            "items": {
              "$ref": "#/components/schemas/BudgetActualsCellSchemaOut"
            },
            "title": "Cells",
            "type": "array"
          },
          "meta": {
            "$ref": "#/components/schemas/BudgetActualsMetaSchemaOut"
          }
        },
        "required": [
          "cells",
          "meta"
        ],
        "title": "BudgetActualsResponseSchemaOut",
        "type": "object"
      },
      "BudgetAccountSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "number": {
            "title": "Number",
            "type": "string"
          },
          "parent_id": {
            "title": "Parent Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "type": {
            "$ref": "#/components/schemas/AccountType"
          },
          "category": {
            "title": "Category",
            "type": [
              "string",
              "null"
            ]
          },
          "is_global_account": {
            "title": "Is Global Account",
            "type": "boolean"
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_name": {
            "title": "Company Name",
            "type": [
              "string",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "number",
          "type",
          "is_global_account",
          "is_active"
        ],
        "title": "BudgetAccountSchemaOut",
        "type": "object"
      },
      "ContractStatusFilter": {
        "description": "Filter-only enum that extends ContractStatus with virtual statuses.",
        "enum": [
          "draft",
          "review",
          "active",
          "completed",
          "terminated",
          "archived"
        ],
        "title": "ContractStatusFilter",
        "type": "string"
      },
      "PublicContractListFilterSchema": {
        "properties": {
          "integration_sources": {
            "title": "Integration Sources",
            "items": {
              "$ref": "#/components/schemas/IntegrationSourceSlug"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "status": {
            "title": "Status",
            "items": {
              "$ref": "#/components/schemas/ContractStatusFilter"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "contract_start_date": {
            "title": "Contract Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "contract_end_date": {
            "title": "Contract End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "recognition_mode": {
            "title": "Recognition Mode",
            "items": {
              "$ref": "#/components/schemas/RecognitionMode"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "recognition_strategy": {
            "title": "Recognition Strategy",
            "items": {
              "$ref": "#/components/schemas/RecognitionStrategy"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "has_auto_renewal": {
            "title": "Has Auto Renewal",
            "type": [
              "boolean",
              "null"
            ]
          },
          "has_scheduled_termination": {
            "title": "Has Scheduled Termination",
            "type": [
              "boolean",
              "null"
            ]
          },
          "days_till_expiry": {
            "title": "Days Till Expiry",
            "type": [
              "integer",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicContractListFilterSchema",
        "type": "object"
      },
      "RecognitionMode": {
        "enum": [
          "individual",
          "subledger"
        ],
        "title": "RecognitionMode",
        "type": "string"
      },
      "RecognitionStrategy": {
        "enum": [
          "straight_line",
          "straight_line_start_end_even",
          "daily_prorata",
          "milestone",
          "usage_tiered",
          "usage",
          "immediate",
          "deposit_release"
        ],
        "title": "RecognitionStrategy",
        "type": "string"
      },
      "ContractCachedMetricsSchemaOut": {
        "description": "Precomputed contract metrics from the cache table.",
        "properties": {
          "tcv": {
            "title": "Tcv",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "mrr": {
            "default": "0",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Mrr",
            "type": "string"
          },
          "arr": {
            "default": "0",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Arr",
            "type": "string"
          },
          "amount_invoiced_percentage": {
            "title": "Amount Invoiced Percentage",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "revenue_recognized": {
            "default": "0",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Revenue Recognized",
            "type": "string"
          },
          "revenue_recognized_percentage": {
            "title": "Revenue Recognized Percentage",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "next_invoice_date": {
            "title": "Next Invoice Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "ContractCachedMetricsSchemaOut",
        "type": "object"
      },
      "ContractInvoiceSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "due_date": {
            "format": "date",
            "title": "Due Date",
            "type": "string"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "tax_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Tax Amount",
            "type": "string"
          },
          "paid_total": {
            "description": "Amount that was already paid by Customer Repayment Applications or Customer Payments",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Paid Total",
            "type": "string"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "source": {
            "title": "Source",
            "type": "string"
          }
        },
        "required": [
          "id",
          "number",
          "date",
          "due_date",
          "amount",
          "tax_amount",
          "paid_total",
          "record_status",
          "source"
        ],
        "title": "ContractInvoiceSchemaOut",
        "type": "object"
      },
      "ContractListSchemaOut": {
        "description": "Schema for list endpoints \u2014 excludes detail-only fields (attachments, obligation_usage).",
        "properties": {
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "completed_approvals_count": {
            "default": 0,
            "title": "Completed Approvals Count",
            "type": "integer"
          },
          "total_approvals_count": {
            "default": 0,
            "title": "Total Approvals Count",
            "type": "integer"
          },
          "integration_remote_records": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/IntegrationRemoteRecordSchemaOut"
            },
            "title": "Integration Remote Records",
            "type": "array"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_name": {
            "title": "Company Name",
            "type": [
              "string",
              "null"
            ]
          },
          "company_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_ar_account_id": {
            "title": "Default Ar Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "unbilled_receivable_account_id": {
            "title": "Unbilled Receivable Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "contract_template_id": {
            "title": "Contract Template Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "start_date": {
            "format": "date",
            "title": "Start Date",
            "type": "string"
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "bill_to_address": {
            "title": "Bill To Address",
            "type": "string"
          },
          "ship_to_address": {
            "title": "Ship To Address",
            "type": "string"
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "billing_anchor_weekday": {
            "title": "Billing Anchor Weekday",
            "type": [
              "integer",
              "null"
            ]
          },
          "recognition_anchor_weekday": {
            "title": "Recognition Anchor Weekday",
            "type": [
              "integer",
              "null"
            ]
          },
          "is_incomplete": {
            "title": "Is Incomplete",
            "type": "boolean"
          },
          "cutover_date": {
            "title": "Cutover Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "prior_recognized_amount": {
            "title": "Prior Recognized Amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "default_early_termination_fee": {
            "title": "Default Early Termination Fee",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/ContractStatus"
          },
          "recognition_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecognitionMode"
              }
            ],
            "default": "individual"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "is_locked": {
            "title": "Is Locked",
            "type": "boolean"
          },
          "workflow_status": {
            "title": "Workflow Status",
            "type": [
              "string",
              "null"
            ]
          },
          "pending_approvers_count": {
            "default": 0,
            "title": "Pending Approvers Count",
            "type": "integer"
          },
          "payment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PaymentSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "revenue_recognitions": {
            "items": {
              "$ref": "#/components/schemas/RevenueRecognitionListSchemaOut"
            },
            "title": "Revenue Recognitions",
            "type": "array"
          },
          "invoices": {
            "items": {
              "$ref": "#/components/schemas/ContractInvoiceSchemaOut"
            },
            "title": "Invoices",
            "type": "array"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "renewed_end_date": {
            "title": "Renewed End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "next_renewal_date": {
            "title": "Next Renewal Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "days_till_expiry": {
            "title": "Days Till Expiry",
            "type": [
              "integer",
              "null"
            ]
          },
          "termination": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmbeddedTerminationSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "change_orders": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/EmbeddedChangeOrderSchemaOut"
            },
            "title": "Change Orders",
            "type": "array"
          },
          "cached_metrics": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContractCachedMetricsSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "has_usage_obligations": {
            "default": false,
            "title": "Has Usage Obligations",
            "type": "boolean"
          },
          "has_usages": {
            "default": false,
            "title": "Has Usages",
            "type": "boolean"
          },
          "metrics": {
            "$ref": "#/components/schemas/ContractMetricsSchemaOut",
            "description": "Derived contract metrics (MRR, ARR, TCV, invoiced, recognized, etc.).",
            "readOnly": true
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "id",
          "number",
          "name",
          "currency_iso_4217_code",
          "memo",
          "date",
          "start_date",
          "bill_to_address",
          "ship_to_address",
          "is_incomplete",
          "status",
          "record_status",
          "is_locked",
          "revenue_recognitions",
          "invoices",
          "amount",
          "metrics"
        ],
        "title": "ContractListSchemaOut",
        "type": "object"
      },
      "ContractMetricsSchemaOut": {
        "properties": {
          "total_contract_value": {
            "title": "Total Contract Value",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "mrr": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Mrr",
            "type": "string"
          },
          "arr": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Arr",
            "type": "string"
          },
          "amount_invoiced": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount Invoiced",
            "type": "string"
          },
          "amount_invoiced_percentage": {
            "title": "Amount Invoiced Percentage",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "invoices_paid": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Invoices Paid",
            "type": "string"
          },
          "invoices_paid_percentage": {
            "title": "Invoices Paid Percentage",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "revenue_recognized": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Revenue Recognized",
            "type": "string"
          },
          "revenue_recognized_percentage": {
            "title": "Revenue Recognized Percentage",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "unbilled_revenue": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Unbilled Revenue",
            "type": "string"
          },
          "unrecognized_revenue": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Unrecognized Revenue",
            "type": "string"
          },
          "deferred_revenue": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Deferred Revenue",
            "type": "string"
          },
          "next_invoice_date": {
            "title": "Next Invoice Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "total_discount_amount": {
            "default": "0",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Total Discount Amount",
            "type": "string"
          },
          "total_tax_amount": {
            "default": "0",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Total Tax Amount",
            "type": "string"
          }
        },
        "required": [
          "mrr",
          "arr",
          "amount_invoiced",
          "invoices_paid",
          "revenue_recognized",
          "unbilled_revenue",
          "unrecognized_revenue",
          "deferred_revenue"
        ],
        "title": "ContractMetricsSchemaOut",
        "type": "object"
      },
      "ContractStatus": {
        "enum": [
          "draft",
          "active",
          "completed",
          "terminated",
          "archived"
        ],
        "title": "ContractStatus",
        "type": "string"
      },
      "EmbeddedChangeOrderSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "contract_id": {
            "title": "Contract Id",
            "type": "integer"
          },
          "effective_date": {
            "title": "Effective Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "apply_cumulative_catchup": {
            "title": "Apply Cumulative Catchup",
            "type": "boolean"
          },
          "catchup_amount": {
            "title": "Catchup Amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_id": {
            "title": "Transaction Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "is_incomplete": {
            "title": "Is Incomplete",
            "type": "boolean"
          },
          "obligation_modifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/EmbeddedObligationModificationOut"
            },
            "title": "Obligation Modifications",
            "type": "array"
          },
          "obligation_additions": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/EmbeddedObligationAdditionOut"
            },
            "title": "Obligation Additions",
            "type": "array"
          }
        },
        "required": [
          "id",
          "number",
          "contract_id",
          "effective_date",
          "apply_cumulative_catchup",
          "transaction_id",
          "memo",
          "record_status",
          "is_incomplete"
        ],
        "title": "EmbeddedChangeOrderSchemaOut",
        "type": "object"
      },
      "EmbeddedObligationAdditionOut": {
        "description": "Lightweight read-only schema for obligation additions embedded in contract detail.",
        "properties": {
          "item_id": {
            "title": "Item Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "quantity": {
            "description": "Quantity for each billing period on this performance obligation. Quantity 10 and a unit price of $100 for 12 monthly periods give a total contract value of $12,000. The value is empty, or `0`, when the obligation has no quantity. A value is greater than or equal to `0`. The value has up to 6 decimal places.",
            "title": "Quantity",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "rate": {
            "title": "Rate",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "default": 0,
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "standalone_selling_price": {
            "title": "Standalone Selling Price",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "recognition_strategy": {
            "title": "Recognition Strategy",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_start_date": {
            "title": "Billing Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_end_date": {
            "title": "Billing End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_frequency": {
            "title": "Billing Frequency",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_interval": {
            "title": "Billing Interval",
            "type": [
              "integer",
              "null"
            ]
          },
          "recognition_start_date": {
            "title": "Recognition Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "recognition_end_date": {
            "title": "Recognition End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "recognition_frequency": {
            "title": "Recognition Frequency",
            "type": [
              "string",
              "null"
            ]
          },
          "recognition_interval": {
            "title": "Recognition Interval",
            "type": [
              "integer",
              "null"
            ]
          },
          "discount_type": {
            "title": "Discount Type",
            "type": [
              "string",
              "null"
            ]
          },
          "discount_value": {
            "title": "Discount Value",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "EmbeddedObligationAdditionOut",
        "type": "object"
      },
      "EmbeddedObligationModificationOut": {
        "description": "Lightweight output schema for obligation modifications embedded in contract detail.",
        "properties": {
          "obligation_id": {
            "title": "Obligation Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "quantity": {
            "description": "Quantity this change order sets on the performance obligation. When its stored billing period count is `1`, quantity covers the affected term. When the count is greater than `1`, quantity is for each billing period. Empty when this change order does not change quantity.",
            "title": "Quantity",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "rate": {
            "title": "Rate",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "item_id": {
            "title": "Item Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "discount_type": {
            "title": "Discount Type",
            "type": [
              "string",
              "null"
            ]
          },
          "discount_value": {
            "title": "Discount Value",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "standalone_selling_price": {
            "title": "Standalone Selling Price",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "cancel": {
            "default": false,
            "title": "Cancel",
            "type": "boolean"
          }
        },
        "title": "EmbeddedObligationModificationOut",
        "type": "object"
      },
      "EmbeddedTerminationSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "contract_id": {
            "title": "Contract Id",
            "type": "integer"
          },
          "termination_type": {
            "title": "Termination Type",
            "type": "string"
          },
          "termination_date": {
            "format": "date",
            "title": "Termination Date",
            "type": "string"
          },
          "early_termination_fee": {
            "title": "Early Termination Fee",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "early_termination_fee_item_id": {
            "title": "Early Termination Fee Item Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "fee_invoice_id": {
            "title": "Fee Invoice Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "refund_amount": {
            "title": "Refund Amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "refund_credit_account_id": {
            "title": "Refund Credit Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "transaction_id": {
            "title": "Transaction Id",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          }
        },
        "required": [
          "id",
          "number",
          "contract_id",
          "termination_type",
          "termination_date",
          "transaction_id",
          "memo",
          "date",
          "record_status"
        ],
        "title": "EmbeddedTerminationSchemaOut",
        "type": "object"
      },
      "PagedContractListSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ContractListSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedContractListSchemaOut",
        "type": "object"
      },
      "RevenueRecognitionListSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "contract_id": {
            "title": "Contract Id",
            "type": "integer"
          },
          "performance_obligation_id": {
            "title": "Performance Obligation Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "transaction_id": {
            "title": "Transaction Id",
            "type": "integer"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "is_reversal": {
            "default": false,
            "title": "Is Reversal",
            "type": "boolean"
          },
          "income_account_id": {
            "title": "Income Account Id",
            "type": "integer"
          },
          "deferrered_revenue_account_id": {
            "title": "Deferrered Revenue Account Id",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "number",
          "contract_id",
          "date",
          "transaction_date",
          "amount",
          "transaction_id",
          "record_status",
          "income_account_id",
          "deferrered_revenue_account_id"
        ],
        "title": "RevenueRecognitionListSchemaOut",
        "type": "object"
      },
      "ApprovalChainSchema": {
        "description": "Full approval chain.",
        "properties": {
          "workflow_name": {
            "title": "Workflow Name",
            "type": "string"
          },
          "workflow_version": {
            "title": "Workflow Version",
            "type": "integer"
          },
          "steps": {
            "items": {
              "$ref": "#/components/schemas/StepChainSchema"
            },
            "title": "Steps",
            "type": "array"
          }
        },
        "required": [
          "workflow_name",
          "workflow_version",
          "steps"
        ],
        "title": "ApprovalChainSchema",
        "type": "object"
      },
      "ApprovalInfoSchema": {
        "description": "Schema for complete approval workflow information.",
        "properties": {
          "workflow_name": {
            "title": "Workflow Name",
            "type": "string"
          },
          "workflow_version": {
            "title": "Workflow Version",
            "type": "integer"
          },
          "step_name": {
            "title": "Step Name",
            "type": "string"
          },
          "current_substep": {
            "title": "Current Substep",
            "type": "integer"
          },
          "substeps": {
            "items": {
              "$ref": "#/components/schemas/SubstepInfoSchema"
            },
            "title": "Substeps",
            "type": "array"
          }
        },
        "required": [
          "workflow_name",
          "workflow_version",
          "step_name",
          "current_substep",
          "substeps"
        ],
        "title": "ApprovalInfoSchema",
        "type": "object"
      },
      "ApproveCondition": {
        "description": "Condition for approving a substep.",
        "enum": [
          "any",
          "all"
        ],
        "title": "ApproveCondition",
        "type": "string"
      },
      "ApproverSchema": {
        "description": "Schema for approver information.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "first_name": {
            "title": "First Name",
            "type": "string"
          },
          "last_name": {
            "title": "Last Name",
            "type": "string"
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "full_name": {
            "title": "Full Name",
            "type": "string"
          },
          "avatar_url": {
            "title": "Avatar Url",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "first_name",
          "last_name",
          "email",
          "full_name"
        ],
        "title": "ApproverSchema",
        "type": "object"
      },
      "BillingCadence": {
        "enum": [
          "one_time",
          "daily",
          "weekly",
          "monthly",
          "quarterly",
          "semi_annually",
          "annually"
        ],
        "title": "BillingCadence",
        "type": "string"
      },
      "BillingMode": {
        "enum": [
          "period",
          "synced",
          "drawdown"
        ],
        "title": "BillingMode",
        "type": "string"
      },
      "ContractCustomerCreditSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          }
        },
        "required": [
          "id",
          "number",
          "date",
          "amount",
          "currency_iso_4217_code",
          "record_status"
        ],
        "title": "ContractCustomerCreditSchemaOut",
        "type": "object"
      },
      "ContractPublicSchemaOut": {
        "properties": {
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "completed_approvals_count": {
            "default": 0,
            "title": "Completed Approvals Count",
            "type": "integer"
          },
          "total_approvals_count": {
            "default": 0,
            "title": "Total Approvals Count",
            "type": "integer"
          },
          "integration_remote_records": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/IntegrationRemoteRecordSchemaOut"
            },
            "title": "Integration Remote Records",
            "type": "array"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_name": {
            "title": "Company Name",
            "type": [
              "string",
              "null"
            ]
          },
          "company_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_ar_account_id": {
            "title": "Default Ar Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "unbilled_receivable_account_id": {
            "title": "Unbilled Receivable Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "contract_template_id": {
            "title": "Contract Template Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "start_date": {
            "format": "date",
            "title": "Start Date",
            "type": "string"
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "bill_to_address": {
            "title": "Bill To Address",
            "type": "string"
          },
          "ship_to_address": {
            "title": "Ship To Address",
            "type": "string"
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "billing_anchor_weekday": {
            "title": "Billing Anchor Weekday",
            "type": [
              "integer",
              "null"
            ]
          },
          "recognition_anchor_weekday": {
            "title": "Recognition Anchor Weekday",
            "type": [
              "integer",
              "null"
            ]
          },
          "is_incomplete": {
            "title": "Is Incomplete",
            "type": "boolean"
          },
          "cutover_date": {
            "title": "Cutover Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "prior_recognized_amount": {
            "title": "Prior Recognized Amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "default_early_termination_fee": {
            "title": "Default Early Termination Fee",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/ContractStatus"
          },
          "recognition_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecognitionMode"
              }
            ],
            "default": "individual"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "is_locked": {
            "title": "Is Locked",
            "type": "boolean"
          },
          "workflow_status": {
            "title": "Workflow Status",
            "type": [
              "string",
              "null"
            ]
          },
          "pending_approvers_count": {
            "default": 0,
            "title": "Pending Approvers Count",
            "type": "integer"
          },
          "payment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PaymentSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "revenue_recognitions": {
            "items": {
              "$ref": "#/components/schemas/RevenueRecognitionListSchemaOut"
            },
            "title": "Revenue Recognitions",
            "type": "array"
          },
          "invoices": {
            "items": {
              "$ref": "#/components/schemas/ContractInvoiceSchemaOut"
            },
            "title": "Invoices",
            "type": "array"
          },
          "obligations": {
            "items": {
              "$ref": "#/components/schemas/PerformanceObligationOut"
            },
            "title": "Obligations",
            "type": "array"
          },
          "obligation_usage": {
            "items": {
              "$ref": "#/components/schemas/ObligationUsageSchemaOut"
            },
            "title": "Obligation Usage",
            "type": "array"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "renewed_end_date": {
            "title": "Renewed End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "next_renewal_date": {
            "title": "Next Renewal Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "days_till_expiry": {
            "title": "Days Till Expiry",
            "type": [
              "integer",
              "null"
            ]
          },
          "termination": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmbeddedTerminationSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "change_orders": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/EmbeddedChangeOrderSchemaOut"
            },
            "title": "Change Orders",
            "type": "array"
          },
          "customer_credits": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/ContractCustomerCreditSchemaOut"
            },
            "title": "Customer Credits",
            "type": "array"
          },
          "cached_metrics": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContractCachedMetricsSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "has_usage_obligations": {
            "default": false,
            "title": "Has Usage Obligations",
            "type": "boolean"
          },
          "has_usages": {
            "default": false,
            "title": "Has Usages",
            "type": "boolean"
          },
          "approval_info": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApprovalInfoSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "approval_chain": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApprovalChainSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "bank_match_status": {
            "title": "Bank Match Status",
            "type": [
              "string",
              "null"
            ]
          },
          "contract_attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Contract Attachments",
            "type": "array"
          },
          "change_orders_attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Change Orders Attachments",
            "type": "array"
          },
          "metrics": {
            "$ref": "#/components/schemas/ContractMetricsSchemaOut",
            "description": "Derived contract metrics (MRR, ARR, TCV, invoiced, recognized, etc.).",
            "readOnly": true
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "id",
          "number",
          "name",
          "currency_iso_4217_code",
          "memo",
          "date",
          "start_date",
          "bill_to_address",
          "ship_to_address",
          "is_incomplete",
          "status",
          "record_status",
          "is_locked",
          "revenue_recognitions",
          "invoices",
          "obligations",
          "obligation_usage",
          "amount",
          "metrics"
        ],
        "title": "ContractPublicSchemaOut",
        "type": "object"
      },
      "ObligationUsageSchemaOut": {
        "properties": {
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "contract_id": {
            "title": "Contract Id",
            "type": "integer"
          },
          "obligation_id": {
            "title": "Obligation Id",
            "type": "integer"
          },
          "usage_date": {
            "format": "date",
            "title": "Usage Date",
            "type": "string"
          },
          "quantity": {
            "description": "Quantity consumed in this usage entry. Quantity must be greater than `0`. You can use up to 6 decimal places.",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity",
            "type": "string"
          },
          "rate": {
            "title": "Rate",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,10}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "effective_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,10}0*$",
            "title": "Effective Rate",
            "type": "string"
          },
          "revenue_recognition_id": {
            "title": "Revenue Recognition Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/ObligationUsageStatus"
          },
          "invoice_status": {
            "title": "Invoice Status",
            "type": [
              "string",
              "null"
            ]
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "id",
          "contract_id",
          "obligation_id",
          "usage_date",
          "quantity",
          "amount",
          "effective_rate",
          "status"
        ],
        "title": "ObligationUsageSchemaOut",
        "type": "object"
      },
      "ObligationUsageStatus": {
        "enum": [
          "draft",
          "invoiced",
          "archived"
        ],
        "title": "ObligationUsageStatus",
        "type": "string"
      },
      "PerformanceObligationOut": {
        "description": "Output schema for performance obligation (contract line item).",
        "properties": {
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "item_id": {
            "title": "Item Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "item_type": {
            "title": "Item Type",
            "type": [
              "string",
              "null"
            ]
          },
          "item_name": {
            "title": "Item Name",
            "type": [
              "string",
              "null"
            ]
          },
          "hsn_sac_code": {
            "title": "Hsn Sac Code",
            "type": [
              "string",
              "null"
            ]
          },
          "income_account_id": {
            "title": "Income Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "deferral_account_id": {
            "title": "Deferral Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "quantity": {
            "description": "Quantity for each billing period on this performance obligation. Quantity 10 and a unit price of $100 for 12 monthly periods give a total contract value of $12,000. The value is empty when no quantity is stored. The value has up to 6 decimal places.",
            "title": "Quantity",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "rate": {
            "description": "Unit price for one unit in each billing period. Quantity 10 and a unit price of $100 for 12 monthly periods give a total contract value of $12,000. You can use up to 10 decimal places.",
            "title": "Rate",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,10}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_period_count": {
            "default": 1,
            "title": "Billing Period Count",
            "type": "integer"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "standalone_selling_price": {
            "title": "Standalone Selling Price",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,10}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billing_group": {
            "default": 1,
            "minimum": 1,
            "title": "Billing Group",
            "type": "integer"
          },
          "recognition_strategy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecognitionStrategy"
              }
            ],
            "default": "straight_line"
          },
          "obligation_conditions": {
            "additionalProperties": true,
            "title": "Obligation Conditions",
            "type": "object"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "billing_start_date": {
            "format": "date",
            "title": "Billing Start Date",
            "type": "string"
          },
          "billing_end_date": {
            "title": "Billing End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_frequency": {
            "$ref": "#/components/schemas/BillingCadence"
          },
          "billing_interval": {
            "title": "Billing Interval",
            "type": "integer"
          },
          "billing_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillingMode"
              }
            ],
            "default": "period"
          },
          "sync_billing_with_recognition": {
            "default": false,
            "title": "Sync Billing With Recognition",
            "type": "boolean"
          },
          "skip_invoice_generation": {
            "default": false,
            "title": "Skip Invoice Generation",
            "type": "boolean"
          },
          "recognition_start_date": {
            "format": "date",
            "title": "Recognition Start Date",
            "type": "string"
          },
          "recognition_end_date": {
            "title": "Recognition End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "recognition_frequency": {
            "$ref": "#/components/schemas/RecognitionCadence"
          },
          "recognition_interval": {
            "title": "Recognition Interval",
            "type": "integer"
          },
          "discount_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DiscountType"
              },
              {
                "type": "null"
              }
            ]
          },
          "discount_value": {
            "title": "Discount Value",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "allocated_amount": {
            "title": "Allocated Amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "selected_vat_rate_id": {
            "title": "Selected Vat Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "selected_gst_tax_rate_id": {
            "title": "Selected Gst Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "is_auto_renewable": {
            "default": false,
            "title": "Is Auto Renewable",
            "type": "boolean"
          },
          "auto_renewal_date": {
            "title": "Auto Renewal Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "renewed_from_id": {
            "title": "Renewed From Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "changed_from_id": {
            "title": "Changed From Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "change_lineage_root_id": {
            "title": "Change Lineage Root Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "ramp_group_id": {
            "title": "Ramp Group Id",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "prepaid_invoiced": {
            "title": "Prepaid Invoiced",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "prepaid_recognized": {
            "title": "Prepaid Recognized",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "prepaid_remaining": {
            "title": "Prepaid Remaining",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "is_incomplete": {
            "readOnly": true,
            "title": "Is Incomplete",
            "type": "boolean"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "readOnly": true,
            "title": "Amount",
            "type": "string"
          },
          "discount_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "readOnly": true,
            "title": "Discount Amount",
            "type": "string"
          },
          "net_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "readOnly": true,
            "title": "Net Amount",
            "type": "string"
          },
          "qualifies_for_mrr": {
            "description": "Whether this obligation should be included in MRR/ARR calculations.",
            "readOnly": true,
            "title": "Qualifies For Mrr",
            "type": "boolean"
          }
        },
        "required": [
          "position",
          "memo",
          "billing_start_date",
          "billing_frequency",
          "billing_interval",
          "recognition_start_date",
          "recognition_frequency",
          "recognition_interval",
          "is_incomplete",
          "amount",
          "discount_amount",
          "net_amount",
          "qualifies_for_mrr"
        ],
        "title": "PerformanceObligationOut",
        "type": "object"
      },
      "RecognitionCadence": {
        "enum": [
          "daily",
          "weekly",
          "monthly",
          "quarterly",
          "semi_annually",
          "annually"
        ],
        "title": "RecognitionCadence",
        "type": "string"
      },
      "StepChainSchema": {
        "description": "Step in approval chain.",
        "properties": {
          "order": {
            "title": "Order",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/StepStatus"
          },
          "approve_condition": {
            "$ref": "#/components/schemas/ApproveCondition"
          },
          "substeps": {
            "title": "Substeps",
            "items": {
              "$ref": "#/components/schemas/SubstepChainSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approvers": {
            "title": "Approvers",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approved_by": {
            "title": "Approved By",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rejected_by": {
            "title": "Rejected By",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "order",
          "name",
          "status",
          "approve_condition"
        ],
        "title": "StepChainSchema",
        "type": "object"
      },
      "StepStatus": {
        "description": "Status of a step in the approval chain.",
        "enum": [
          "completed",
          "pending",
          "not_started",
          "skipped"
        ],
        "title": "StepStatus",
        "type": "string"
      },
      "SubstepChainSchema": {
        "description": "Substep in approval chain.",
        "properties": {
          "order": {
            "title": "Order",
            "type": "integer"
          },
          "status": {
            "$ref": "#/components/schemas/SubstepStatus"
          },
          "approve_condition": {
            "$ref": "#/components/schemas/ApproveCondition"
          },
          "approvers": {
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "title": "Approvers",
            "type": "array"
          },
          "approved_by": {
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "title": "Approved By",
            "type": "array"
          },
          "rejected_by": {
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "title": "Rejected By",
            "type": "array"
          }
        },
        "required": [
          "order",
          "status",
          "approve_condition",
          "approvers",
          "approved_by",
          "rejected_by"
        ],
        "title": "SubstepChainSchema",
        "type": "object"
      },
      "SubstepInfoSchema": {
        "description": "Schema for individual substep information in approval workflow.",
        "properties": {
          "order": {
            "title": "Order",
            "type": "integer"
          },
          "status": {
            "$ref": "#/components/schemas/SubstepStatus"
          },
          "approve_condition": {
            "$ref": "#/components/schemas/ApproveCondition"
          },
          "approvers": {
            "items": {
              "$ref": "#/components/schemas/ApproverSchema"
            },
            "title": "Approvers",
            "type": "array"
          },
          "approved_by": {
            "items": {
              "$ref": "#/components/schemas/ApproverSchema"
            },
            "title": "Approved By",
            "type": "array"
          },
          "rejected_by": {
            "items": {
              "$ref": "#/components/schemas/ApproverSchema"
            },
            "title": "Rejected By",
            "type": "array"
          }
        },
        "required": [
          "order",
          "status",
          "approve_condition",
          "approvers",
          "approved_by",
          "rejected_by"
        ],
        "title": "SubstepInfoSchema",
        "type": "object"
      },
      "SubstepStatus": {
        "description": "Status of a substep in the approval workflow.",
        "enum": [
          "completed",
          "pending",
          "not_started"
        ],
        "title": "SubstepStatus",
        "type": "string"
      },
      "ContractPublicSchemaCreateIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "memo": {
            "default": "",
            "maxLength": 512,
            "title": "Memo",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "start_date": {
            "format": "date",
            "title": "Start Date",
            "type": "string"
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "default": "",
            "maxLength": 128,
            "title": "Name",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              }
            ],
            "default": "USD"
          },
          "bill_to_address": {
            "default": "",
            "title": "Bill To Address",
            "type": "string"
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_to_address": {
            "default": "",
            "title": "Ship To Address",
            "type": "string"
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "obligations": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PerformanceObligationIn"
            },
            "title": "Obligations",
            "type": "array"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_ar_account_id": {
            "title": "Default Ar Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "unbilled_receivable_account_id": {
            "title": "Unbilled Receivable Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "contract_template_id": {
            "title": "Contract Template Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billing_start_date": {
            "title": "Billing Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillingCadence"
              }
            ],
            "default": "monthly"
          },
          "billing_interval": {
            "default": 1,
            "minimum": 1,
            "title": "Billing Interval",
            "type": "integer"
          },
          "billing_anchor_weekday": {
            "description": "Optional weekday anchor for weekly billing (0=Monday)",
            "title": "Billing Anchor Weekday",
            "maximum": 6,
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "recognition_start_date": {
            "title": "Recognition Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "recognition_frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecognitionCadence"
              }
            ],
            "default": "monthly"
          },
          "recognition_interval": {
            "default": 1,
            "minimum": 1,
            "title": "Recognition Interval",
            "type": "integer"
          },
          "recognition_anchor_weekday": {
            "description": "Optional weekday anchor for weekly recognition (0=Monday)",
            "title": "Recognition Anchor Weekday",
            "maximum": 6,
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/ContractStatus"
          },
          "recognition_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecognitionMode"
              }
            ],
            "default": "individual"
          },
          "contract_attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Contract Attachments",
            "type": "array"
          },
          "change_orders_attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Change Orders Attachments",
            "type": "array"
          },
          "payment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PaymentSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "prepared_invoices": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/InvoiceSchemaCreateIn"
            },
            "title": "Prepared Invoices",
            "type": "array"
          },
          "revenue_recognitions": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RevenueRecognitionSchemaCreateIn"
            },
            "title": "Revenue Recognitions",
            "type": "array"
          },
          "cutover_date": {
            "title": "Cutover Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "prior_recognized_amount": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prior Recognized Amount"
          },
          "default_early_termination_fee": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Early Termination Fee"
          }
        },
        "required": [
          "status"
        ],
        "title": "ContractPublicSchemaCreateIn",
        "type": "object"
      },
      "InvoiceItemIn": {
        "properties": {
          "discount_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DiscountType"
              },
              {
                "type": "null"
              }
            ]
          },
          "discount_value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Discount Value"
          },
          "discount_account_id": {
            "title": "Discount Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_level_discount_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Record Level Discount Amount"
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxData"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "item_id": {
            "title": "Item Id",
            "type": "integer"
          },
          "quantity": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "description": "Quantity billed on this line. Quantity must be greater than or equal to `0`. You can use up to 6 decimal places.",
            "title": "Quantity"
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,10}0*$",
                "type": "string"
              }
            ],
            "title": "Rate"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "item_id",
          "quantity",
          "rate",
          "position",
          "memo"
        ],
        "title": "InvoiceItemIn",
        "type": "object"
      },
      "InvoiceSchemaCreateIn": {
        "properties": {
          "supply_date": {
            "description": "Tax point date for VAT and GST.\n\nWhen the saved record uses a VAT or GST tax regime and you omit this field, DualEntry sets it to `transaction_date`, or to `date` when there is no `transaction_date`.\n\nRecurring templates store the value you send. Each generated record that uses VAT or GST and has no supply date gets that default on save.\n\nOn PATCH, an omitted field keeps the stored value. Send `supply_date` again when you change `date` or `transaction_date`.",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordTaxMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "bill_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "ship_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "origin": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Origin"
              }
            ],
            "default": "manual"
          },
          "discount_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DiscountType"
              },
              {
                "type": "null"
              }
            ]
          },
          "discount_value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Discount Value"
          },
          "book_ids": {
            "description": "Select accounting Book IDs. Omit this field on update to preserve assignments. Use null or an empty list to select all active Books. For records controlled by the organization setting, disabled selection makes creates use all active Books and rejects changed non-empty updates. Journal Entries are exempt.",
            "title": "Book Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "due_date": {
            "title": "Due Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exchange Rate"
          },
          "items": {
            "title": "Items",
            "items": {
              "$ref": "#/components/schemas/InvoiceItemIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "sales_order_id": {
            "title": "Sales Order Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "contracted": {
            "default": false,
            "title": "Contracted",
            "type": "boolean"
          },
          "contract_id": {
            "title": "Contract Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "installments": {
            "description": "Optional applied installment rows for this record. When you send a non-empty list, DualEntry stores these rows instead of copying the term schedule. Amounts must add up to the record total. Paid and partially paid rows must stay with the same position, due date, and amount. An empty list stores no rows, and that is valid when the term is not an installment term. Omit `installments` to copy the term schedule.",
            "title": "Installments",
            "items": {
              "$ref": "#/components/schemas/RecordInstallmentSchemaIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "reference_number": {
            "default": "",
            "title": "Reference Number",
            "type": "string"
          },
          "ar_account_id": {
            "title": "Ar Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "payment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PaymentSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "include_payment_link": {
            "default": false,
            "title": "Include Payment Link",
            "type": "boolean"
          }
        },
        "required": [
          "date"
        ],
        "title": "InvoiceSchemaCreateIn",
        "type": "object"
      },
      "PerformanceObligationIn": {
        "properties": {
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "item_id": {
            "title": "Item Id",
            "minimum": 1,
            "type": [
              "integer",
              "null"
            ]
          },
          "quantity": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "On released v1 and v2, quantity is for the whole term: quantity 10 at a unit price of $100 gives a total contract value of $1,000. On v3, and on v1 or v2 with breaking changes enabled, quantity is for each billing period: the same values over 12 monthly periods give $12,000. You can omit this field when the obligation is incomplete. A value must be greater than `0`. You can use up to 6 decimal places.",
            "title": "Quantity"
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,10}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "On released v1 and v2, this unit price applies to the quantity for the whole term: quantity 10 at a unit price of $100 gives a total contract value of $1,000. On v3, and on v1 or v2 with breaking changes enabled, this unit price applies to each billing period: the same values over 12 monthly periods give $12,000. You can use up to 10 decimal places.",
            "title": "Rate"
          },
          "position": {
            "default": 0,
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "default": "",
            "maxLength": 512,
            "title": "Memo",
            "type": "string"
          },
          "standalone_selling_price": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,10}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Standalone Selling Price"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billing_group": {
            "default": 1,
            "minimum": 1,
            "title": "Billing Group",
            "type": "integer"
          },
          "recognition_strategy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecognitionStrategy"
              }
            ],
            "default": "straight_line"
          },
          "obligation_conditions": {
            "additionalProperties": true,
            "title": "Obligation Conditions",
            "type": "object"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "billing_start_date": {
            "title": "Billing Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_end_date": {
            "title": "Billing End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_frequency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillingCadence"
              },
              {
                "type": "null"
              }
            ]
          },
          "billing_interval": {
            "title": "Billing Interval",
            "type": [
              "integer",
              "null"
            ]
          },
          "billing_mode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillingMode"
              },
              {
                "type": "null"
              }
            ]
          },
          "sync_billing_with_recognition": {
            "default": false,
            "title": "Sync Billing With Recognition",
            "type": "boolean"
          },
          "skip_invoice_generation": {
            "default": false,
            "title": "Skip Invoice Generation",
            "type": "boolean"
          },
          "recognition_start_date": {
            "title": "Recognition Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "recognition_end_date": {
            "title": "Recognition End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "recognition_frequency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecognitionCadence"
              },
              {
                "type": "null"
              }
            ]
          },
          "recognition_interval": {
            "title": "Recognition Interval",
            "type": [
              "integer",
              "null"
            ]
          },
          "discount_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DiscountType"
              },
              {
                "type": "null"
              }
            ]
          },
          "discount_value": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Discount Value"
          },
          "selected_vat_rate_id": {
            "title": "Selected Vat Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "selected_gst_tax_rate_id": {
            "title": "Selected Gst Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "is_auto_renewable": {
            "default": false,
            "title": "Is Auto Renewable",
            "type": "boolean"
          },
          "ramp_group_id": {
            "title": "Ramp Group Id",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PerformanceObligationIn",
        "type": "object"
      },
      "RecordInstallmentSchemaIn": {
        "properties": {
          "position": {
            "minimum": 1,
            "title": "Position",
            "type": "integer"
          },
          "due_date": {
            "format": "date",
            "title": "Due Date",
            "type": "string"
          },
          "amount": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Amount"
          }
        },
        "required": [
          "position",
          "due_date",
          "amount"
        ],
        "title": "RecordInstallmentSchemaIn",
        "type": "object"
      },
      "RevenueRecognitionSchemaCreateIn": {
        "properties": {
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Amount"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "performance_obligation_id": {
            "title": "Performance Obligation Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "income_account_id": {
            "title": "Income Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "deferral_account_id": {
            "title": "Deferral Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "gross_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Gross Amount"
          },
          "discount_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Discount Amount"
          }
        },
        "required": [
          "date",
          "amount"
        ],
        "title": "RevenueRecognitionSchemaCreateIn",
        "type": "object"
      },
      "ContractSchemaOut": {
        "properties": {
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "completed_approvals_count": {
            "default": 0,
            "title": "Completed Approvals Count",
            "type": "integer"
          },
          "total_approvals_count": {
            "default": 0,
            "title": "Total Approvals Count",
            "type": "integer"
          },
          "integration_remote_records": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/IntegrationRemoteRecordSchemaOut"
            },
            "title": "Integration Remote Records",
            "type": "array"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_name": {
            "title": "Company Name",
            "type": [
              "string",
              "null"
            ]
          },
          "company_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_ar_account_id": {
            "title": "Default Ar Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "unbilled_receivable_account_id": {
            "title": "Unbilled Receivable Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "contract_template_id": {
            "title": "Contract Template Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "start_date": {
            "format": "date",
            "title": "Start Date",
            "type": "string"
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "bill_to_address": {
            "title": "Bill To Address",
            "type": "string"
          },
          "ship_to_address": {
            "title": "Ship To Address",
            "type": "string"
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "billing_anchor_weekday": {
            "title": "Billing Anchor Weekday",
            "type": [
              "integer",
              "null"
            ]
          },
          "recognition_anchor_weekday": {
            "title": "Recognition Anchor Weekday",
            "type": [
              "integer",
              "null"
            ]
          },
          "is_incomplete": {
            "title": "Is Incomplete",
            "type": "boolean"
          },
          "cutover_date": {
            "title": "Cutover Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "prior_recognized_amount": {
            "title": "Prior Recognized Amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "default_early_termination_fee": {
            "title": "Default Early Termination Fee",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/ContractStatus"
          },
          "recognition_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecognitionMode"
              }
            ],
            "default": "individual"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "is_locked": {
            "title": "Is Locked",
            "type": "boolean"
          },
          "workflow_status": {
            "title": "Workflow Status",
            "type": [
              "string",
              "null"
            ]
          },
          "pending_approvers_count": {
            "default": 0,
            "title": "Pending Approvers Count",
            "type": "integer"
          },
          "payment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PaymentSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "revenue_recognitions": {
            "items": {
              "$ref": "#/components/schemas/RevenueRecognitionSchemaOut"
            },
            "title": "Revenue Recognitions",
            "type": "array"
          },
          "invoices": {
            "items": {
              "$ref": "#/components/schemas/ContractInvoiceSchemaOut"
            },
            "title": "Invoices",
            "type": "array"
          },
          "obligations": {
            "items": {
              "$ref": "#/components/schemas/PerformanceObligationOut"
            },
            "title": "Obligations",
            "type": "array"
          },
          "obligation_usage": {
            "items": {
              "$ref": "#/components/schemas/ObligationUsageSchemaOut"
            },
            "title": "Obligation Usage",
            "type": "array"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "renewed_end_date": {
            "title": "Renewed End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "next_renewal_date": {
            "title": "Next Renewal Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "days_till_expiry": {
            "title": "Days Till Expiry",
            "type": [
              "integer",
              "null"
            ]
          },
          "termination": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmbeddedTerminationSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "change_orders": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/EmbeddedChangeOrderSchemaOut"
            },
            "title": "Change Orders",
            "type": "array"
          },
          "customer_credits": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/ContractCustomerCreditSchemaOut"
            },
            "title": "Customer Credits",
            "type": "array"
          },
          "cached_metrics": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContractCachedMetricsSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "has_usage_obligations": {
            "default": false,
            "title": "Has Usage Obligations",
            "type": "boolean"
          },
          "has_usages": {
            "default": false,
            "title": "Has Usages",
            "type": "boolean"
          },
          "approval_info": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApprovalInfoSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "approval_chain": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApprovalChainSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "bank_match_status": {
            "title": "Bank Match Status",
            "type": [
              "string",
              "null"
            ]
          },
          "contract_attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Contract Attachments",
            "type": "array"
          },
          "change_orders_attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Change Orders Attachments",
            "type": "array"
          },
          "book_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Book Ids",
            "type": "array"
          },
          "metrics": {
            "$ref": "#/components/schemas/ContractMetricsSchemaOut",
            "description": "Derived contract metrics (MRR, ARR, TCV, invoiced, recognized, etc.).",
            "readOnly": true
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "id",
          "number",
          "name",
          "currency_iso_4217_code",
          "memo",
          "date",
          "start_date",
          "bill_to_address",
          "ship_to_address",
          "is_incomplete",
          "status",
          "record_status",
          "is_locked",
          "revenue_recognitions",
          "invoices",
          "obligations",
          "obligation_usage",
          "amount",
          "book_ids",
          "metrics"
        ],
        "title": "ContractSchemaOut",
        "type": "object"
      },
      "RevenueRecognitionSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "contract_id": {
            "title": "Contract Id",
            "type": "integer"
          },
          "performance_obligation_id": {
            "title": "Performance Obligation Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "transaction_id": {
            "title": "Transaction Id",
            "type": "integer"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "is_reversal": {
            "default": false,
            "title": "Is Reversal",
            "type": "boolean"
          },
          "income_account_id": {
            "title": "Income Account Id",
            "type": "integer"
          },
          "deferrered_revenue_account_id": {
            "title": "Deferrered Revenue Account Id",
            "type": "integer"
          },
          "book_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Book Ids",
            "type": "array"
          }
        },
        "required": [
          "id",
          "number",
          "contract_id",
          "date",
          "transaction_date",
          "amount",
          "transaction_id",
          "record_status",
          "income_account_id",
          "deferrered_revenue_account_id",
          "book_ids"
        ],
        "title": "RevenueRecognitionSchemaOut",
        "type": "object"
      },
      "ContractSchemaUpdateIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "memo": {
            "default": "",
            "maxLength": 512,
            "title": "Memo",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "start_date": {
            "format": "date",
            "title": "Start Date",
            "type": "string"
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "default": "",
            "maxLength": 128,
            "title": "Name",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              }
            ],
            "default": "USD"
          },
          "bill_to_address": {
            "default": "",
            "title": "Bill To Address",
            "type": "string"
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_to_address": {
            "default": "",
            "title": "Ship To Address",
            "type": "string"
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "obligations": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PerformanceObligationIn"
            },
            "title": "Obligations",
            "type": "array"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_ar_account_id": {
            "title": "Default Ar Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "unbilled_receivable_account_id": {
            "title": "Unbilled Receivable Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "contract_template_id": {
            "title": "Contract Template Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billing_start_date": {
            "title": "Billing Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillingCadence"
              }
            ],
            "default": "monthly"
          },
          "billing_interval": {
            "default": 1,
            "minimum": 1,
            "title": "Billing Interval",
            "type": "integer"
          },
          "billing_anchor_weekday": {
            "description": "Optional weekday anchor for weekly billing (0=Monday)",
            "title": "Billing Anchor Weekday",
            "maximum": 6,
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "recognition_start_date": {
            "title": "Recognition Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "recognition_frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecognitionCadence"
              }
            ],
            "default": "monthly"
          },
          "recognition_interval": {
            "default": 1,
            "minimum": 1,
            "title": "Recognition Interval",
            "type": "integer"
          },
          "recognition_anchor_weekday": {
            "description": "Optional weekday anchor for weekly recognition (0=Monday)",
            "title": "Recognition Anchor Weekday",
            "maximum": 6,
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/ContractStatus"
          },
          "recognition_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecognitionMode"
              }
            ],
            "default": "individual"
          },
          "contract_attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Contract Attachments",
            "type": "array"
          },
          "change_orders_attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Change Orders Attachments",
            "type": "array"
          },
          "payment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PaymentSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "prepared_invoices": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/InvoiceSchemaCreateIn"
            },
            "title": "Prepared Invoices",
            "type": "array"
          },
          "revenue_recognitions": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RevenueRecognitionSchemaCreateIn"
            },
            "title": "Revenue Recognitions",
            "type": "array"
          },
          "cutover_date": {
            "title": "Cutover Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "prior_recognized_amount": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prior Recognized Amount"
          },
          "default_early_termination_fee": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Early Termination Fee"
          },
          "book_ids": {
            "description": "Select accounting Book IDs. Omit this field on update to preserve assignments. Use null or an empty list to select all active Books. For records controlled by the organization setting, disabled selection makes creates use all active Books and rejects changed non-empty updates. Journal Entries are exempt.",
            "title": "Book Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "status"
        ],
        "title": "ContractSchemaUpdateIn",
        "type": "object"
      },
      "PublicContractSchemaPatchIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "date": {
            "title": "Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "bill_to_address": {
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_to_address": {
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "obligations": {
            "title": "Obligations",
            "items": {
              "$ref": "#/components/schemas/PerformanceObligationIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_ar_account_id": {
            "title": "Default Ar Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "unbilled_receivable_account_id": {
            "title": "Unbilled Receivable Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "contract_template_id": {
            "title": "Contract Template Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billing_start_date": {
            "title": "Billing Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_frequency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillingCadence"
              },
              {
                "type": "null"
              }
            ]
          },
          "billing_interval": {
            "title": "Billing Interval",
            "type": [
              "integer",
              "null"
            ]
          },
          "billing_anchor_weekday": {
            "title": "Billing Anchor Weekday",
            "type": [
              "integer",
              "null"
            ]
          },
          "recognition_start_date": {
            "title": "Recognition Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "recognition_frequency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecognitionCadence"
              },
              {
                "type": "null"
              }
            ]
          },
          "recognition_interval": {
            "title": "Recognition Interval",
            "type": [
              "integer",
              "null"
            ]
          },
          "recognition_anchor_weekday": {
            "title": "Recognition Anchor Weekday",
            "type": [
              "integer",
              "null"
            ]
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContractStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "recognition_mode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecognitionMode"
              },
              {
                "type": "null"
              }
            ]
          },
          "contract_attachments": {
            "title": "Contract Attachments",
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "change_orders_attachments": {
            "title": "Change Orders Attachments",
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "payment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PaymentSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "cutover_date": {
            "title": "Cutover Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "prior_recognized_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prior Recognized Amount"
          },
          "default_early_termination_fee": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Early Termination Fee"
          }
        },
        "title": "PublicContractSchemaPatchIn",
        "type": "object"
      },
      "PublicContractMilestoneListFilterSchema": {
        "properties": {
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicContractMilestoneListFilterSchema",
        "type": "object"
      },
      "MilestoneAmountMode": {
        "enum": [
          "FIXED",
          "PERCENT",
          "COMPUTED"
        ],
        "title": "MilestoneAmountMode",
        "type": "string"
      },
      "MilestoneOut": {
        "description": "Canonical milestone returned by the read endpoint.",
        "properties": {
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "contract_id": {
            "title": "Contract Id",
            "type": "integer"
          },
          "obligation_id": {
            "title": "Obligation Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": [
              "string",
              "null"
            ]
          },
          "amount_mode": {
            "$ref": "#/components/schemas/MilestoneAmountMode"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "percentage": {
            "title": "Percentage",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "computed_quantity": {
            "description": "Quantity you supply to calculate this milestone amount. Send it with `computed_rate` when `amount_mode` is `COMPUTED`. Leave it empty when the milestone does not use a computed amount.",
            "title": "Computed quantity",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "computed_rate": {
            "title": "Computed Rate",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,10}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "date": {
            "title": "Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/MilestoneStatus"
          },
          "archived_reason": {
            "title": "Archived Reason",
            "type": [
              "string",
              "null"
            ]
          },
          "revenue_recognition_id": {
            "title": "Revenue Recognition Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "subledger_line_id": {
            "title": "Subledger Line Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "require_sequential_completion": {
            "default": false,
            "title": "Require Sequential Completion",
            "type": "boolean"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "id",
          "contract_id",
          "obligation_id",
          "name",
          "amount_mode",
          "amount",
          "status"
        ],
        "title": "MilestoneOut",
        "type": "object"
      },
      "MilestoneStatus": {
        "enum": [
          "DRAFT",
          "ACTIVE",
          "COMPLETED",
          "ARCHIVED"
        ],
        "title": "MilestoneStatus",
        "type": "string"
      },
      "PagedMilestoneOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/MilestoneOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedMilestoneOut",
        "type": "object"
      },
      "PublicContractUsageListFilterSchema": {
        "properties": {
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicContractUsageListFilterSchema",
        "type": "object"
      },
      "ObligationUsageBatchIn": {
        "description": "Batch input for creating/updating multiple usage records.",
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ObligationUsageItemIn"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "ObligationUsageBatchIn",
        "type": "object"
      },
      "ObligationUsageItemIn": {
        "description": "Single usage item within a batch.",
        "properties": {
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "obligation_id": {
            "title": "Obligation Id",
            "type": "integer"
          },
          "usage_date": {
            "format": "date",
            "title": "Usage Date",
            "type": "string"
          },
          "quantity": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "description": "Quantity consumed in this usage entry. Quantity must be greater than `0`. You can use up to 6 decimal places.",
            "title": "Quantity"
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,10}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rate"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ObligationUsageStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "classifications": {
            "title": "Classifications",
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "obligation_id",
          "usage_date",
          "quantity"
        ],
        "title": "ObligationUsageItemIn",
        "type": "object"
      },
      "PublicContractChangeOrderListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "contract_id": {
            "title": "Contract Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicContractChangeOrderListFilterSchema",
        "type": "object"
      },
      "ContractChangeOrderListSchemaOut": {
        "properties": {
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "contract_id": {
            "title": "Contract Id",
            "type": "integer"
          },
          "contract_name": {
            "title": "Contract Name",
            "type": "string"
          },
          "effective_date": {
            "title": "Effective Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "apply_cumulative_catchup": {
            "title": "Apply Cumulative Catchup",
            "type": "boolean"
          },
          "catchup_amount": {
            "title": "Catchup Amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_id": {
            "title": "Transaction Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "is_incomplete": {
            "title": "Is Incomplete",
            "type": "boolean"
          },
          "obligation_modifications": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Obligation Modifications",
            "type": "array"
          },
          "obligation_additions": {
            "items": {
              "$ref": "#/components/schemas/ObligationAdditionOut"
            },
            "title": "Obligation Additions",
            "type": "array"
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "id",
          "number",
          "company_id",
          "company_name",
          "contract_id",
          "contract_name",
          "effective_date",
          "memo",
          "apply_cumulative_catchup",
          "transaction_id",
          "record_status",
          "is_incomplete",
          "obligation_modifications",
          "obligation_additions"
        ],
        "title": "ContractChangeOrderListSchemaOut",
        "type": "object"
      },
      "ObligationAdditionOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "item_id": {
            "title": "Item Id",
            "minimum": 1,
            "type": [
              "integer",
              "null"
            ]
          },
          "quantity": {
            "description": "On released v1 and v2, quantity is for the whole term: quantity 10 at a unit price of $100 gives a total contract value of $1,000. On v3, and on v1 or v2 with breaking changes enabled, quantity is for each billing period: the same values over 12 monthly periods give $12,000. The value is empty when no quantity is stored. The value has up to 6 decimal places.",
            "title": "Quantity",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "rate": {
            "description": "On released v1 and v2, this unit price applies to the quantity for the whole term: quantity 10 at a unit price of $100 gives a total contract value of $1,000. On v3, and on v1 or v2 with breaking changes enabled, this unit price applies to each billing period: the same values over 12 monthly periods give $12,000. You can use up to 10 decimal places.",
            "title": "Rate",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,10}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "default": 0,
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "default": "",
            "maxLength": 512,
            "title": "Memo",
            "type": "string"
          },
          "standalone_selling_price": {
            "title": "Standalone Selling Price",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,10}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billing_group": {
            "default": 1,
            "minimum": 1,
            "title": "Billing Group",
            "type": "integer"
          },
          "recognition_strategy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecognitionStrategy"
              }
            ],
            "default": "straight_line"
          },
          "obligation_conditions": {
            "additionalProperties": true,
            "title": "Obligation Conditions",
            "type": "object"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "billing_start_date": {
            "title": "Billing Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_end_date": {
            "title": "Billing End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_frequency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillingCadence"
              },
              {
                "type": "null"
              }
            ]
          },
          "billing_interval": {
            "title": "Billing Interval",
            "type": [
              "integer",
              "null"
            ]
          },
          "billing_mode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillingMode"
              },
              {
                "type": "null"
              }
            ]
          },
          "sync_billing_with_recognition": {
            "default": false,
            "title": "Sync Billing With Recognition",
            "type": "boolean"
          },
          "skip_invoice_generation": {
            "default": false,
            "title": "Skip Invoice Generation",
            "type": "boolean"
          },
          "recognition_start_date": {
            "title": "Recognition Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "recognition_end_date": {
            "title": "Recognition End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "recognition_frequency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecognitionCadence"
              },
              {
                "type": "null"
              }
            ]
          },
          "recognition_interval": {
            "title": "Recognition Interval",
            "type": [
              "integer",
              "null"
            ]
          },
          "discount_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DiscountType"
              },
              {
                "type": "null"
              }
            ]
          },
          "discount_value": {
            "title": "Discount Value",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "selected_vat_rate_id": {
            "title": "Selected Vat Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "selected_gst_tax_rate_id": {
            "title": "Selected Gst Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "is_auto_renewable": {
            "default": false,
            "title": "Is Auto Renewable",
            "type": "boolean"
          },
          "ramp_group_id": {
            "title": "Ramp Group Id",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "is_incomplete": {
            "readOnly": true,
            "title": "Is Incomplete",
            "type": "boolean"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "readOnly": true,
            "title": "Amount",
            "type": "string"
          },
          "discount_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "readOnly": true,
            "title": "Discount Amount",
            "type": "string"
          },
          "net_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "readOnly": true,
            "title": "Net Amount",
            "type": "string"
          }
        },
        "required": [
          "is_incomplete",
          "amount",
          "discount_amount",
          "net_amount"
        ],
        "title": "ObligationAdditionOut",
        "type": "object"
      },
      "PagedContractChangeOrderListSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ContractChangeOrderListSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedContractChangeOrderListSchemaOut",
        "type": "object"
      },
      "ContractChangeOrderSchemaOut": {
        "properties": {
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "contract_id": {
            "title": "Contract Id",
            "type": "integer"
          },
          "contract_name": {
            "title": "Contract Name",
            "type": "string"
          },
          "effective_date": {
            "title": "Effective Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "apply_cumulative_catchup": {
            "title": "Apply Cumulative Catchup",
            "type": "boolean"
          },
          "catchup_amount": {
            "title": "Catchup Amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_id": {
            "title": "Transaction Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "is_incomplete": {
            "title": "Is Incomplete",
            "type": "boolean"
          },
          "obligation_modifications": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Obligation Modifications",
            "type": "array"
          },
          "obligation_additions": {
            "items": {
              "$ref": "#/components/schemas/ObligationAdditionOut"
            },
            "title": "Obligation Additions",
            "type": "array"
          },
          "book_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Book Ids",
            "type": "array"
          },
          "change_summary": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/ObligationChangeSummary"
            },
            "title": "Change Summary",
            "type": "array"
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "id",
          "number",
          "company_id",
          "company_name",
          "contract_id",
          "contract_name",
          "effective_date",
          "memo",
          "apply_cumulative_catchup",
          "transaction_id",
          "record_status",
          "is_incomplete",
          "obligation_modifications",
          "obligation_additions",
          "book_ids"
        ],
        "title": "ContractChangeOrderSchemaOut",
        "type": "object"
      },
      "ObligationChangeSummary": {
        "properties": {
          "predecessor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PerformanceObligationOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "successor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PerformanceObligationOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "type": {
            "$ref": "#/components/schemas/ObligationChangeType"
          },
          "changes": {
            "additionalProperties": {
              "$ref": "#/components/schemas/ObligationFieldChange"
            },
            "default": {},
            "title": "Changes",
            "type": "object"
          }
        },
        "required": [
          "type"
        ],
        "title": "ObligationChangeSummary",
        "type": "object"
      },
      "ObligationChangeType": {
        "enum": [
          "MODIFICATION",
          "CANCELLATION",
          "ADDITION"
        ],
        "title": "ObligationChangeType",
        "type": "string"
      },
      "ObligationFieldChange": {
        "properties": {
          "old_value": {
            "title": "Old Value",
            "type": [
              "string",
              "null"
            ]
          },
          "new_value": {
            "title": "New Value",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "ObligationFieldChange",
        "type": "object"
      },
      "ChangeOrderQuantityBasis": {
        "enum": [
          "remaining",
          "full"
        ],
        "title": "ChangeOrderQuantityBasis",
        "type": "string"
      },
      "PublicContractChangeOrderObligationAdditionIn": {
        "properties": {
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "item_id": {
            "minimum": 1,
            "title": "Item Id",
            "type": "integer"
          },
          "quantity": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "description": "On released v1 and v2, quantity is for the whole term: quantity 10 at a unit price of $100 gives a total contract value of $1,000. On v3, and on v1 or v2 with breaking changes enabled, quantity is for each billing period: the same values over 12 monthly periods give $12,000. Quantity must be greater than `0`. You can use up to 6 decimal places.",
            "title": "Quantity"
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,10}0*$",
                "type": "string"
              }
            ],
            "description": "On released v1 and v2, this unit price applies to the quantity for the whole term: quantity 10 at a unit price of $100 gives a total contract value of $1,000. On v3, and on v1 or v2 with breaking changes enabled, this unit price applies to each billing period: the same values over 12 monthly periods give $12,000. You can use up to 10 decimal places.",
            "title": "Rate"
          },
          "position": {
            "default": 0,
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "default": "",
            "maxLength": 512,
            "title": "Memo",
            "type": "string"
          },
          "standalone_selling_price": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,10}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Standalone Selling Price"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billing_group": {
            "default": 1,
            "minimum": 1,
            "title": "Billing Group",
            "type": "integer"
          },
          "recognition_strategy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecognitionStrategy"
              }
            ],
            "default": "straight_line"
          },
          "obligation_conditions": {
            "additionalProperties": true,
            "title": "Obligation Conditions",
            "type": "object"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "billing_start_date": {
            "title": "Billing Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_end_date": {
            "title": "Billing End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_frequency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillingCadence"
              },
              {
                "type": "null"
              }
            ],
            "description": "If you omit this field and the addition includes `id`, DualEntry uses `monthly`. If you omit this field and the addition has no `id`, DualEntry uses the item's `default_rev_rec_invoice_frequency`, or `monthly` if that field is empty."
          },
          "billing_interval": {
            "description": "If you omit this field and the addition includes `id`, DualEntry uses `1`. If you omit this field and the addition has no `id`, DualEntry uses the item's `default_rev_rec_invoice_interval`, or `1` if that field is empty.",
            "title": "Billing Interval",
            "minimum": 1,
            "type": [
              "integer",
              "null"
            ]
          },
          "billing_mode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillingMode"
              },
              {
                "type": "null"
              }
            ]
          },
          "sync_billing_with_recognition": {
            "default": false,
            "title": "Sync Billing With Recognition",
            "type": "boolean"
          },
          "skip_invoice_generation": {
            "default": false,
            "title": "Skip Invoice Generation",
            "type": "boolean"
          },
          "recognition_start_date": {
            "title": "Recognition Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "recognition_end_date": {
            "title": "Recognition End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "recognition_frequency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecognitionCadence"
              },
              {
                "type": "null"
              }
            ],
            "description": "If you omit this field, DualEntry uses `monthly`."
          },
          "recognition_interval": {
            "description": "If you omit this field, DualEntry uses `1`.",
            "title": "Recognition Interval",
            "minimum": 1,
            "type": [
              "integer",
              "null"
            ]
          },
          "discount_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DiscountType"
              },
              {
                "type": "null"
              }
            ]
          },
          "discount_value": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Discount Value"
          },
          "selected_vat_rate_id": {
            "title": "Selected Vat Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "selected_gst_tax_rate_id": {
            "title": "Selected Gst Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "is_auto_renewable": {
            "default": false,
            "title": "Is Auto Renewable",
            "type": "boolean"
          },
          "ramp_group_id": {
            "title": "Ramp Group Id",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "item_id",
          "quantity",
          "rate"
        ],
        "title": "PublicContractChangeOrderObligationAdditionIn",
        "type": "object"
      },
      "PublicContractChangeOrderObligationModificationIn": {
        "properties": {
          "obligation_id": {
            "title": "Obligation Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "quantity": {
            "anyOf": [
              {
                "exclusiveMinimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "New quantity for this performance obligation. When its stored billing period count is `1`, quantity covers the affected term. When the count is greater than `1`, quantity is for each billing period. Omit this field to keep the stored quantity. Quantity must be greater than `0`. You can use up to 6 decimal places.",
            "title": "Quantity"
          },
          "quantity_basis": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ChangeOrderQuantityBasis"
              },
              {
                "type": "null"
              }
            ]
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "New unit price for this performance obligation. When its stored billing period count is `1`, this price applies to the quantity for the affected term. When the count is greater than `1`, this price applies to each billing period. Omit this field to keep the stored unit price. You can use up to 10 decimal places.",
            "title": "Rate"
          },
          "item_id": {
            "title": "Item Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "discount_type": {
            "title": "Discount Type",
            "type": [
              "string",
              "null"
            ]
          },
          "discount_value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Discount Value"
          },
          "standalone_selling_price": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Standalone Selling Price"
          },
          "obligation_conditions": {
            "title": "Obligation Conditions",
            "additionalProperties": true,
            "type": [
              "object",
              "null"
            ]
          },
          "cancel": {
            "default": false,
            "title": "Cancel",
            "type": "boolean"
          }
        },
        "title": "PublicContractChangeOrderObligationModificationIn",
        "type": "object"
      },
      "PublicContractChangeOrderSchemaCreateIn": {
        "properties": {
          "effective_date": {
            "format": "date",
            "title": "Effective Date",
            "type": "string"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "apply_cumulative_catchup": {
            "default": false,
            "title": "Apply Cumulative Catchup",
            "type": "boolean"
          },
          "obligation_modifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicContractChangeOrderObligationModificationIn"
            },
            "title": "Obligation Modifications",
            "type": "array"
          },
          "obligation_additions": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicContractChangeOrderObligationAdditionIn"
            },
            "title": "Obligation Additions",
            "type": "array"
          }
        },
        "required": [
          "effective_date"
        ],
        "title": "PublicContractChangeOrderSchemaCreateIn",
        "type": "object"
      },
      "PublicContractChangeOrderSchemaUpdateIn": {
        "properties": {
          "effective_date": {
            "format": "date",
            "title": "Effective Date",
            "type": "string"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "apply_cumulative_catchup": {
            "default": false,
            "title": "Apply Cumulative Catchup",
            "type": "boolean"
          },
          "obligation_modifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicContractChangeOrderObligationModificationIn"
            },
            "title": "Obligation Modifications",
            "type": "array"
          },
          "obligation_additions": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicContractChangeOrderObligationAdditionIn"
            },
            "title": "Obligation Additions",
            "type": "array"
          },
          "record_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "effective_date"
        ],
        "title": "PublicContractChangeOrderSchemaUpdateIn",
        "type": "object"
      },
      "ContractChangeOrderArchiveSchemaOut": {
        "properties": {
          "success": {
            "const": true,
            "default": true,
            "title": "Success",
            "type": "boolean"
          },
          "errors": {
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "title": "Errors",
            "type": "object"
          },
          "message": {
            "title": "Message",
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "created_at",
          "updated_at"
        ],
        "title": "ContractChangeOrderArchiveSchemaOut",
        "type": "object"
      },
      "CustomerListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "customer_type": {
            "title": "Customer Type",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          },
          "name_exact": {
            "title": "Name Exact",
            "type": [
              "string",
              "null"
            ]
          },
          "unique_id": {
            "title": "Unique Id",
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "title": "Email",
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "title": "Website",
            "type": [
              "string",
              "null"
            ]
          },
          "address": {
            "title": "Address",
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "title": "Country",
            "items": {
              "$ref": "#/components/schemas/SystemCountries"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "state": {
            "title": "State",
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "title": "Phone",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "merged_into_id": {
            "description": "Return customers merged into any of these customer IDs.",
            "title": "Merged Into Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status_scope": {
            "title": "Approval Status Scope",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          },
          "parent_id": {
            "description": "Parent customer IDs. Use \"null\" to match root customers (no parent).",
            "title": "Parent Id",
            "items": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "$ref": "#/components/schemas/SentinelValueForFilters"
                }
              ]
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id_access": {
            "title": "Company Id Access",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "title": "CustomerListFilterSchema",
        "type": "object"
      },
      "SentinelValueForFilters": {
        "description": "Query-string token that means \"match rows where the field IS NULL\".",
        "enum": [
          "null"
        ],
        "title": "SentinelValueForFilters",
        "type": "string"
      },
      "BillableConsolidationMode": {
        "enum": [
          "by_line",
          "consolidated"
        ],
        "title": "BillableConsolidationMode",
        "type": "string"
      },
      "CustomerListSchemaOut": {
        "properties": {
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "term_name": {
            "title": "Term Name",
            "type": "string"
          },
          "gst_registration_numbers": {
            "items": {
              "$ref": "#/components/schemas/GstRegistrationItemSchemaOut"
            },
            "title": "Gst Registration Numbers",
            "type": "array"
          },
          "vat_registration_numbers": {
            "items": {
              "$ref": "#/components/schemas/VatRegistrationItemSchemaOut"
            },
            "title": "Vat Registration Numbers",
            "type": "array"
          },
          "classification_line_ids": {
            "default": [],
            "items": {
              "type": "integer"
            },
            "title": "Classification Line Ids",
            "type": "array"
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "type": [
              "string",
              "null"
            ]
          },
          "next_approvers": {
            "title": "Next Approvers",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rejected_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectedBySchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "date_style": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DateStyle"
              },
              {
                "type": "null"
              }
            ],
            "description": "Date display style: short, medium, long, or custom. Null means the organization default applies."
          },
          "date_format_custom": {
            "description": "Day.js / Moment-style date pattern (max 16 chars). Tokens: YYYY, YY, MMMM, MMM, MM, M, DD, D. Separators: / . - , and space. Examples: DD.MM.YYYY, MM/DD/YYYY, YYYY-MM-DD. Not ICU or raw Intl.",
            "title": "Date Format Custom",
            "maxLength": 16,
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "address": {
            "title": "Address",
            "type": "string"
          },
          "country": {
            "title": "Country",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "unique_id": {
            "title": "Unique Id",
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "title": "Website",
            "type": "string"
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "cc": {
            "title": "Cc",
            "type": "string"
          },
          "bcc": {
            "title": "Bcc",
            "type": "string"
          },
          "customer_type": {
            "title": "Customer Type",
            "type": "string"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "phone": {
            "title": "Phone",
            "type": "string"
          },
          "record_status": {
            "title": "Record Status",
            "type": "string"
          },
          "is_taxable": {
            "title": "Is Taxable",
            "type": "boolean"
          },
          "default_tax_code": {
            "title": "Default Tax Code",
            "type": "string"
          },
          "tax_registration_number": {
            "title": "Tax Registration Number",
            "type": "string"
          },
          "tin": {
            "default": "",
            "description": "Tax identification number. The value is an empty string when the number is not set.",
            "title": "Tin",
            "type": "string"
          },
          "tin_type": {
            "default": "",
            "description": "Type of tax identification number: `ein`, `ssn`, `utr`, or `rfc` (Mexico). The value is an empty string when the type is not set.",
            "title": "Tin Type",
            "type": "string"
          },
          "business_id": {
            "default": "",
            "title": "Business Id",
            "type": "string"
          },
          "default_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "const": "",
                "type": "string"
              }
            ],
            "title": "Default Currency"
          },
          "full_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_ar_account_id": {
            "title": "Default Ar Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "parent_id": {
            "title": "Parent Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "tax_exemption_reason_code": {
            "title": "Tax Exemption Reason Code",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_exemption_reason_code_origin": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxExemptionReasonCodeOrigin"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_billable_markup_pct": {
            "title": "Default Billable Markup Pct",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "default_billable_consolidation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillableConsolidationMode"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_billable_expense_item_id": {
            "title": "Default Billable Expense Item Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_name": {
            "title": "Company Name",
            "type": [
              "string",
              "null"
            ]
          },
          "allowed_company_ids": {
            "default": [],
            "items": {
              "type": "integer"
            },
            "title": "Allowed Company Ids",
            "type": "array"
          },
          "merged_into_id": {
            "description": "When you merge this customer into another customer, the ID of that customer.",
            "title": "Merged Into Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "term_id",
          "term_name",
          "created_at",
          "updated_at",
          "id",
          "address",
          "country",
          "name",
          "unique_id",
          "website",
          "email",
          "cc",
          "bcc",
          "customer_type",
          "is_active",
          "phone",
          "record_status",
          "is_taxable",
          "default_tax_code",
          "tax_registration_number",
          "default_currency",
          "full_address",
          "shipping_address"
        ],
        "title": "CustomerListSchemaOut",
        "type": "object"
      },
      "GstCountries": {
        "enum": [
          "AU",
          "NZ",
          "SG",
          "IN",
          "CA",
          "MY"
        ],
        "title": "GstCountries",
        "type": "string"
      },
      "GstRegistrationItemSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "country": {
            "$ref": "#/components/schemas/GstCountries"
          },
          "region": {
            "title": "Region",
            "type": [
              "string",
              "null"
            ]
          },
          "registration_type": {
            "$ref": "#/components/schemas/GstRegistrationType"
          },
          "registration_number": {
            "title": "Registration Number",
            "type": "string"
          }
        },
        "required": [
          "id",
          "country",
          "region",
          "registration_type",
          "registration_number"
        ],
        "title": "GstRegistrationItemSchemaOut",
        "type": "object"
      },
      "GstRegistrationType": {
        "enum": [
          "GST",
          "GSTIN",
          "PST",
          "QST",
          "SST_SALES",
          "SST_SERVICE"
        ],
        "title": "GstRegistrationType",
        "type": "string"
      },
      "PagedCustomerListSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/CustomerListSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedCustomerListSchemaOut",
        "type": "object"
      },
      "TaxExemptionReasonCodeOrigin": {
        "enum": [
          "AVALARA"
        ],
        "title": "TaxExemptionReasonCodeOrigin",
        "type": "string"
      },
      "CustomerSchemaOut": {
        "properties": {
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "term_name": {
            "title": "Term Name",
            "type": "string"
          },
          "gst_registration_numbers": {
            "items": {
              "$ref": "#/components/schemas/GstRegistrationItemSchemaOut"
            },
            "title": "Gst Registration Numbers",
            "type": "array"
          },
          "vat_registration_numbers": {
            "items": {
              "$ref": "#/components/schemas/VatRegistrationItemSchemaOut"
            },
            "title": "Vat Registration Numbers",
            "type": "array"
          },
          "classification_line_ids": {
            "default": [],
            "items": {
              "type": "integer"
            },
            "title": "Classification Line Ids",
            "type": "array"
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "type": [
              "string",
              "null"
            ]
          },
          "next_approvers": {
            "title": "Next Approvers",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rejected_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectedBySchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "date_style": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DateStyle"
              },
              {
                "type": "null"
              }
            ],
            "description": "Date display style: short, medium, long, or custom. Null means the organization default applies."
          },
          "date_format_custom": {
            "description": "Day.js / Moment-style date pattern (max 16 chars). Tokens: YYYY, YY, MMMM, MMM, MM, M, DD, D. Separators: / . - , and space. Examples: DD.MM.YYYY, MM/DD/YYYY, YYYY-MM-DD. Not ICU or raw Intl.",
            "title": "Date Format Custom",
            "maxLength": 16,
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "address": {
            "title": "Address",
            "type": "string"
          },
          "country": {
            "title": "Country",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "unique_id": {
            "title": "Unique Id",
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "title": "Website",
            "type": "string"
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "cc": {
            "title": "Cc",
            "type": "string"
          },
          "bcc": {
            "title": "Bcc",
            "type": "string"
          },
          "customer_type": {
            "title": "Customer Type",
            "type": "string"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "phone": {
            "title": "Phone",
            "type": "string"
          },
          "record_status": {
            "title": "Record Status",
            "type": "string"
          },
          "is_taxable": {
            "title": "Is Taxable",
            "type": "boolean"
          },
          "default_tax_code": {
            "title": "Default Tax Code",
            "type": "string"
          },
          "tax_registration_number": {
            "title": "Tax Registration Number",
            "type": "string"
          },
          "tin": {
            "default": "",
            "description": "Tax identification number. The value is an empty string when the number is not set.",
            "title": "Tin",
            "type": "string"
          },
          "tin_type": {
            "default": "",
            "description": "Type of tax identification number: `ein`, `ssn`, `utr`, or `rfc` (Mexico). The value is an empty string when the type is not set.",
            "title": "Tin Type",
            "type": "string"
          },
          "business_id": {
            "default": "",
            "title": "Business Id",
            "type": "string"
          },
          "default_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "const": "",
                "type": "string"
              }
            ],
            "title": "Default Currency"
          },
          "full_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_ar_account_id": {
            "title": "Default Ar Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "parent_id": {
            "title": "Parent Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "tax_exemption_reason_code": {
            "title": "Tax Exemption Reason Code",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_exemption_reason_code_origin": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxExemptionReasonCodeOrigin"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_billable_markup_pct": {
            "title": "Default Billable Markup Pct",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "default_billable_consolidation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillableConsolidationMode"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_billable_expense_item_id": {
            "title": "Default Billable Expense Item Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_name": {
            "title": "Company Name",
            "type": [
              "string",
              "null"
            ]
          },
          "allowed_company_ids": {
            "default": [],
            "items": {
              "type": "integer"
            },
            "title": "Allowed Company Ids",
            "type": "array"
          },
          "merged_into_id": {
            "description": "When you merge this customer into another customer, the ID of that customer.",
            "title": "Merged Into Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          }
        },
        "required": [
          "term_id",
          "term_name",
          "created_at",
          "updated_at",
          "id",
          "address",
          "country",
          "name",
          "unique_id",
          "website",
          "email",
          "cc",
          "bcc",
          "customer_type",
          "is_active",
          "phone",
          "record_status",
          "is_taxable",
          "default_tax_code",
          "tax_registration_number",
          "default_currency",
          "full_address",
          "shipping_address"
        ],
        "title": "CustomerSchemaOut",
        "type": "object"
      },
      "CustomerSchemaCreateIn": {
        "properties": {
          "gst_registration_numbers": {
            "title": "Gst Registration Numbers",
            "items": {
              "$ref": "#/components/schemas/GstRegistrationItemSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "vat_registration_numbers": {
            "title": "Vat Registration Numbers",
            "items": {
              "$ref": "#/components/schemas/VatRegistrationItemSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "business_id": {
            "default": "",
            "description": "Business identifier. Spaces at the ends are removed. An empty value clears the stored identifier.",
            "maxLength": 100,
            "title": "Business Id",
            "type": "string"
          },
          "date_style": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DateStyle"
              },
              {
                "type": "null"
              }
            ],
            "description": "Date display style: short, medium, long, or custom. Null means the organization default applies."
          },
          "date_format_custom": {
            "description": "Day.js / Moment-style date pattern (max 16 chars). Tokens: YYYY, YY, MMMM, MMM, MM, M, DD, D. Separators: / . - , and space. Examples: DD.MM.YYYY, MM/DD/YYYY, YYYY-MM-DD. Not ICU or raw Intl.",
            "title": "Date Format Custom",
            "maxLength": 16,
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "unique_id": {
            "title": "Unique Id",
            "maxLength": 64,
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "cc": {
            "default": "",
            "title": "Cc",
            "type": "string"
          },
          "bcc": {
            "default": "",
            "title": "Bcc",
            "type": "string"
          },
          "address": {
            "default": "",
            "title": "Address",
            "type": "string"
          },
          "country": {
            "title": "Country",
            "type": "string"
          },
          "phone": {
            "maxLength": 64,
            "pattern": "(?i)^(?:[0-9\\s+\\-.\\(\\)]*|[0-9\\s+\\-.\\(\\)]+(?:\\s*(?:x|ext\\.?|extension)\\s*\\d+))$",
            "title": "Phone",
            "type": "string"
          },
          "website": {
            "title": "Website",
            "type": "string"
          },
          "is_active": {
            "default": true,
            "title": "Is Active",
            "type": "boolean"
          },
          "is_taxable": {
            "default": false,
            "description": "Whether tax is calculated for this customer. Set to false to mark the customer as tax-exempt.",
            "title": "Is Taxable",
            "type": "boolean"
          },
          "full_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_ar_account_id": {
            "title": "Default Ar Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "const": "",
                "type": "string"
              }
            ],
            "default": "",
            "title": "Default Currency"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "parent_id": {
            "title": "Parent Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CustomerTypes"
              }
            ],
            "default": "company"
          },
          "tax_exemption_reason_code": {
            "title": "Tax Exemption Reason Code",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_exemption_reason_code_origin": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxExemptionReasonCodeOrigin"
              },
              {
                "type": "null"
              }
            ]
          },
          "tin": {
            "default": "",
            "description": "Tax identification number. Set it together with `tin_type`. Format by type: `ein` `12-3456789`, `ssn` `123-45-6789`, `rfc` 3 or 4 uppercase letters, a `YYMMDD` date, 2 uppercase letters or digits, then a digit or `A`, for example `ABC010203XY9`. On an update, send an empty string or `null` to clear it.",
            "maxLength": 13,
            "title": "Tin",
            "type": "string"
          },
          "tin_type": {
            "anyOf": [
              {
                "const": "",
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/TINType"
              }
            ],
            "default": "",
            "description": "Type of tax identification number: `ein`, `ssn`, `utr`, or `rfc` (Mexico). Set it together with `tin`. On an update, send an empty string or `null` to clear it.",
            "title": "Tin Type"
          },
          "default_billable_markup_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Billable Markup Pct"
          },
          "default_billable_consolidation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillableConsolidationMode"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_billable_expense_item_id": {
            "title": "Default Billable Expense Item Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "allowed_company_ids": {
            "description": "Company IDs allowed to use this customer. Empty list means global (all companies).",
            "title": "Allowed Company Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "classification_line_ids": {
            "description": "Classification lines stored on this record.",
            "title": "Classification Line Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "email",
          "country",
          "phone",
          "website"
        ],
        "title": "CustomerSchemaCreateIn",
        "type": "object"
      },
      "CustomerTypes": {
        "enum": [
          "individual",
          "company",
          "intercompany"
        ],
        "title": "CustomerTypes",
        "type": "string"
      },
      "GstRegistrationItemSchema": {
        "properties": {
          "country": {
            "$ref": "#/components/schemas/GstCountries"
          },
          "region": {
            "title": "Region",
            "maxLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "registration_type": {
            "$ref": "#/components/schemas/GstRegistrationType"
          },
          "registration_number": {
            "maxLength": 50,
            "title": "Registration Number",
            "type": "string"
          }
        },
        "required": [
          "country",
          "registration_type",
          "registration_number"
        ],
        "title": "GstRegistrationItemSchema",
        "type": "object"
      },
      "TINType": {
        "enum": [
          "ein",
          "ssn",
          "utr",
          "rfc"
        ],
        "title": "TINType",
        "type": "string"
      },
      "VatRegistrationItemSchema": {
        "properties": {
          "country": {
            "maxLength": 2,
            "title": "Country",
            "type": "string"
          },
          "registration_number": {
            "maxLength": 100,
            "title": "Registration Number",
            "type": "string"
          }
        },
        "required": [
          "country",
          "registration_number"
        ],
        "title": "VatRegistrationItemSchema",
        "type": "object"
      },
      "CustomerMergeResultSchemaOut": {
        "properties": {
          "success": {
            "const": true,
            "default": true,
            "title": "Success",
            "type": "boolean"
          },
          "target_customer_id": {
            "title": "Target Customer Id",
            "type": "integer"
          },
          "merged_customer_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Merged Customer Ids",
            "type": "array"
          },
          "moved_counts": {
            "additionalProperties": {
              "type": "integer"
            },
            "title": "Moved Counts",
            "type": "object"
          },
          "applied_field_sources": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "title": "Applied Field Sources",
            "type": "object"
          },
          "applied_custom_field_sources": {
            "additionalProperties": {
              "type": "integer"
            },
            "title": "Applied Custom Field Sources",
            "type": "object"
          }
        },
        "required": [
          "target_customer_id",
          "merged_customer_ids",
          "moved_counts",
          "applied_field_sources",
          "applied_custom_field_sources"
        ],
        "title": "CustomerMergeResultSchemaOut",
        "type": "object"
      },
      "CustomerMergeField": {
        "enum": [
          "name",
          "email",
          "phone",
          "website",
          "address",
          "shipping_address",
          "default_terms",
          "default_ar_account",
          "tax_settings",
          "billable_defaults",
          "classifications",
          "company_access"
        ],
        "title": "CustomerMergeField",
        "type": "string"
      },
      "CustomerMergeSchemaIn": {
        "properties": {
          "target_customer_id": {
            "description": "The ID of the customer that stays. It keeps its ID, code and records.",
            "title": "Target Customer Id",
            "type": "integer"
          },
          "source_customer_ids": {
            "description": "The IDs of the duplicate customers. The merge moves their records to the survivor, then archives them.",
            "items": {
              "type": "integer"
            },
            "maxItems": 25,
            "minItems": 1,
            "title": "Source Customer Ids",
            "type": "array"
          },
          "field_sources": {
            "additionalProperties": {
              "type": "integer"
            },
            "description": "For each field, the ID of the customer that gives the value to the survivor. A field that you do not name keeps the survivor value. When that value is empty, the field gets the first duplicate value.",
            "propertyNames": {
              "$ref": "#/components/schemas/CustomerMergeField"
            },
            "title": "Field Sources",
            "type": "object"
          },
          "custom_field_sources": {
            "additionalProperties": {
              "type": "integer"
            },
            "description": "For each custom field ID, the ID of the customer that gives the value to the survivor.",
            "title": "Custom Field Sources",
            "type": "object"
          }
        },
        "required": [
          "target_customer_id",
          "source_customer_ids"
        ],
        "title": "CustomerMergeSchemaIn",
        "type": "object"
      },
      "CustomerSchemaUpdateIn": {
        "description": "Partial update payload for `PUT /public/customers/{id}/`.\n\nEvery field is optional: send only the fields you want to change.\nUnset fields are left untouched on the existing record. This is the\npartial-update semantic clients expect from a modern REST API.",
        "properties": {
          "gst_registration_numbers": {
            "title": "Gst Registration Numbers",
            "items": {
              "$ref": "#/components/schemas/GstRegistrationItemSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "vat_registration_numbers": {
            "title": "Vat Registration Numbers",
            "items": {
              "$ref": "#/components/schemas/VatRegistrationItemSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "business_id": {
            "default": "",
            "description": "Business identifier. Spaces at the ends are removed. An empty value clears the stored identifier.",
            "maxLength": 100,
            "title": "Business Id",
            "type": "string"
          },
          "date_style": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DateStyle"
              },
              {
                "type": "null"
              }
            ],
            "description": "Date display style: short, medium, long, or custom. Null means the organization default applies."
          },
          "date_format_custom": {
            "description": "Day.js / Moment-style date pattern (max 16 chars). Tokens: YYYY, YY, MMMM, MMM, MM, M, DD, D. Separators: / . - , and space. Examples: DD.MM.YYYY, MM/DD/YYYY, YYYY-MM-DD. Not ICU or raw Intl.",
            "title": "Date Format Custom",
            "maxLength": 16,
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          },
          "unique_id": {
            "title": "Unique Id",
            "maxLength": 64,
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "title": "Email",
            "type": [
              "string",
              "null"
            ]
          },
          "cc": {
            "title": "Cc",
            "type": [
              "string",
              "null"
            ]
          },
          "bcc": {
            "title": "Bcc",
            "type": [
              "string",
              "null"
            ]
          },
          "address": {
            "title": "Address",
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "title": "Country",
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "title": "Phone",
            "maxLength": 64,
            "pattern": "(?i)^(?:[0-9\\s+\\-.\\(\\)]*|[0-9\\s+\\-.\\(\\)]+(?:\\s*(?:x|ext\\.?|extension)\\s*\\d+))$",
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "title": "Website",
            "type": [
              "string",
              "null"
            ]
          },
          "full_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          },
          "record_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_taxable": {
            "description": "Whether tax is calculated for this customer. Set to false to mark the customer as tax-exempt.",
            "title": "Is Taxable",
            "type": [
              "boolean",
              "null"
            ]
          },
          "allowed_company_ids": {
            "description": "Company IDs allowed to use this customer. Empty list means global (all companies). Omit or send null to leave unchanged.",
            "title": "Allowed Company Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "default_ar_account_id": {
            "title": "Default Ar Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "const": "",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Currency"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "parent_id": {
            "title": "Parent Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomerTypes"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_exemption_reason_code": {
            "title": "Tax Exemption Reason Code",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_exemption_reason_code_origin": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxExemptionReasonCodeOrigin"
              },
              {
                "type": "null"
              }
            ]
          },
          "tin": {
            "description": "Tax identification number. Set it together with `tin_type`. Format by type: `ein` `12-3456789`, `ssn` `123-45-6789`, `rfc` 3 or 4 uppercase letters, a `YYMMDD` date, 2 uppercase letters or digits, then a digit or `A`, for example `ABC010203XY9`. On an update, send an empty string or `null` to clear it.",
            "title": "Tin",
            "maxLength": 13,
            "type": [
              "string",
              "null"
            ]
          },
          "tin_type": {
            "anyOf": [
              {
                "const": "",
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/TINType"
              },
              {
                "type": "null"
              }
            ],
            "description": "Type of tax identification number: `ein`, `ssn`, `utr`, or `rfc` (Mexico). Set it together with `tin`. On an update, send an empty string or `null` to clear it.",
            "title": "Tin Type"
          },
          "default_billable_markup_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Billable Markup Pct"
          },
          "default_billable_consolidation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillableConsolidationMode"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_billable_expense_item_id": {
            "title": "Default Billable Expense Item Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "attachments": {
            "title": "Attachments",
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "classification_line_ids": {
            "description": "Classification lines stored on this record.",
            "title": "Classification Line Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "title": "CustomerSchemaUpdateIn",
        "type": "object"
      },
      "CustomerSchemaPatchIn": {
        "description": "Partial update payload for `PATCH /public/customers/{id}/`.\n\nEvery field is optional: send only the fields you want to change.\nUnset fields are left untouched on the existing record.",
        "properties": {
          "gst_registration_numbers": {
            "title": "Gst Registration Numbers",
            "items": {
              "$ref": "#/components/schemas/GstRegistrationItemSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "vat_registration_numbers": {
            "title": "Vat Registration Numbers",
            "items": {
              "$ref": "#/components/schemas/VatRegistrationItemSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "business_id": {
            "default": "",
            "description": "Business identifier. Spaces at the ends are removed. An empty value clears the stored identifier.",
            "maxLength": 100,
            "title": "Business Id",
            "type": "string"
          },
          "date_style": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DateStyle"
              },
              {
                "type": "null"
              }
            ],
            "description": "Date display style: short, medium, long, or custom. Null means the organization default applies."
          },
          "date_format_custom": {
            "description": "Day.js / Moment-style date pattern (max 16 chars). Tokens: YYYY, YY, MMMM, MMM, MM, M, DD, D. Separators: / . - , and space. Examples: DD.MM.YYYY, MM/DD/YYYY, YYYY-MM-DD. Not ICU or raw Intl.",
            "title": "Date Format Custom",
            "maxLength": 16,
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          },
          "unique_id": {
            "title": "Unique Id",
            "maxLength": 64,
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "title": "Email",
            "type": [
              "string",
              "null"
            ]
          },
          "cc": {
            "title": "Cc",
            "type": [
              "string",
              "null"
            ]
          },
          "bcc": {
            "title": "Bcc",
            "type": [
              "string",
              "null"
            ]
          },
          "address": {
            "title": "Address",
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "title": "Country",
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "title": "Phone",
            "maxLength": 64,
            "pattern": "(?i)^(?:[0-9\\s+\\-.\\(\\)]*|[0-9\\s+\\-.\\(\\)]+(?:\\s*(?:x|ext\\.?|extension)\\s*\\d+))$",
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "title": "Website",
            "type": [
              "string",
              "null"
            ]
          },
          "full_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          },
          "record_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_taxable": {
            "description": "Whether tax is calculated for this customer. Set to false to mark the customer as tax-exempt.",
            "title": "Is Taxable",
            "type": [
              "boolean",
              "null"
            ]
          },
          "allowed_company_ids": {
            "description": "Company IDs allowed to use this customer. Empty list means global (all companies). Omit or send null to leave unchanged.",
            "title": "Allowed Company Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "default_ar_account_id": {
            "title": "Default Ar Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "const": "",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Currency"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "parent_id": {
            "title": "Parent Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomerTypes"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_exemption_reason_code": {
            "title": "Tax Exemption Reason Code",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_exemption_reason_code_origin": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxExemptionReasonCodeOrigin"
              },
              {
                "type": "null"
              }
            ]
          },
          "tin": {
            "description": "Tax identification number. Set it together with `tin_type`. Format by type: `ein` `12-3456789`, `ssn` `123-45-6789`, `rfc` 3 or 4 uppercase letters, a `YYMMDD` date, 2 uppercase letters or digits, then a digit or `A`, for example `ABC010203XY9`. On an update, send an empty string or `null` to clear it.",
            "title": "Tin",
            "maxLength": 13,
            "type": [
              "string",
              "null"
            ]
          },
          "tin_type": {
            "anyOf": [
              {
                "const": "",
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/TINType"
              },
              {
                "type": "null"
              }
            ],
            "description": "Type of tax identification number: `ein`, `ssn`, `utr`, or `rfc` (Mexico). Set it together with `tin`. On an update, send an empty string or `null` to clear it.",
            "title": "Tin Type"
          },
          "default_billable_markup_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Billable Markup Pct"
          },
          "default_billable_consolidation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillableConsolidationMode"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_billable_expense_item_id": {
            "title": "Default Billable Expense Item Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "attachments": {
            "title": "Attachments",
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "classification_line_ids": {
            "description": "Classification lines stored on this record.",
            "title": "Classification Line Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "title": "CustomerSchemaPatchIn",
        "type": "object"
      },
      "ItemTypes": {
        "enum": [
          "service",
          "discount"
        ],
        "title": "ItemTypes",
        "type": "string"
      },
      "PublicItemListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "sku": {
            "description": "Filter by SKU. Pass one or more values for an exact match. Use `search` for partial matches.",
            "title": "Sku",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          },
          "item_type": {
            "title": "Item Type",
            "items": {
              "$ref": "#/components/schemas/ItemTypes"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "no_income_account": {
            "title": "No Income Account",
            "type": [
              "boolean",
              "null"
            ]
          },
          "no_expense_account": {
            "title": "No Expense Account",
            "type": [
              "boolean",
              "null"
            ]
          },
          "no_deferral_account": {
            "title": "No Deferral Account",
            "type": [
              "boolean",
              "null"
            ]
          },
          "no_asset_account": {
            "title": "No Asset Account",
            "type": [
              "boolean",
              "null"
            ]
          },
          "no_discount_account": {
            "title": "No Discount Account",
            "type": [
              "boolean",
              "null"
            ]
          },
          "expense_account_id": {
            "title": "Expense Account Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "income_account_id": {
            "title": "Income Account Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "deferral_account_id": {
            "title": "Deferral Account Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "asset_account_id": {
            "title": "Asset Account Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "product_tax_code_id": {
            "title": "Product Tax Code Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "discount_account_id": {
            "title": "Discount Account Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "title": "PublicItemListFilterSchema",
        "type": "object"
      },
      "CostingMethod": {
        "enum": [
          "fifo",
          "weighted_average"
        ],
        "title": "CostingMethod",
        "type": "string"
      },
      "ItemPriceSchemaOut": {
        "properties": {
          "currency": {
            "title": "Currency",
            "type": "string"
          },
          "amount": {
            "title": "Amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "currency"
        ],
        "title": "ItemPriceSchemaOut",
        "type": "object"
      },
      "PagedPublicItemSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicItemSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicItemSchemaOut",
        "type": "object"
      },
      "PublicItemSchemaOut": {
        "properties": {
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "type": [
              "string",
              "null"
            ]
          },
          "next_approvers": {
            "title": "Next Approvers",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rejected_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectedBySchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "sku": {
            "title": "Sku",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "item_type": {
            "$ref": "#/components/schemas/ItemTypes"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "product_tax_code_id": {
            "title": "Product Tax Code Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "expense_account_id": {
            "title": "Expense Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "income_account_id": {
            "title": "Income Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "deferral_account_id": {
            "title": "Deferral Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "asset_account_id": {
            "title": "Asset Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "discount_account_id": {
            "title": "Discount Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_classification_line_ids": {
            "title": "Default Classification Line Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "default_rev_rec_method": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecognitionStrategy"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_rev_rec_invoice_frequency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillingCadence"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_rev_rec_invoice_interval": {
            "title": "Default Rev Rec Invoice Interval",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_standalone_selling_price": {
            "description": "Deprecated. Use prices.",
            "title": "Default Standalone Selling Price",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "default_standalone_selling_price_currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ],
            "description": "Deprecated. Use prices."
          },
          "default_standalone_selling_price_exchange_rate": {
            "description": "Deprecated. Use prices.",
            "title": "Default Standalone Selling Price Exchange Rate",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "prices": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/ItemPriceSchemaOut"
            },
            "title": "Prices",
            "type": "array"
          },
          "costing_method": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CostingMethod"
              },
              {
                "type": "null"
              }
            ]
          },
          "stock_unit": {
            "title": "Stock Unit",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "id",
          "name",
          "sku",
          "description",
          "item_type",
          "is_active",
          "record_status"
        ],
        "title": "PublicItemSchemaOut",
        "type": "object"
      },
      "ItemPriceSchemaIn": {
        "properties": {
          "currency": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*(?:\\d{0,14}|(?=[\\d.]{1,17}0*$)\\d{0,14}\\.\\d{0,2}0*$)",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Amount"
          }
        },
        "required": [
          "currency",
          "amount"
        ],
        "title": "ItemPriceSchemaIn",
        "type": "object"
      },
      "PublicItemSchemaCreateIn": {
        "properties": {
          "name": {
            "maxLength": 256,
            "minLength": 2,
            "title": "Name",
            "type": "string"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "sku": {
            "maxLength": 64,
            "minLength": 1,
            "title": "Sku",
            "type": "string"
          },
          "description": {
            "default": "",
            "maxLength": 512,
            "minLength": 0,
            "title": "Description",
            "type": "string"
          },
          "item_type": {
            "$ref": "#/components/schemas/ItemTypes"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "product_tax_code_id": {
            "title": "Product Tax Code Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "expense_account_id": {
            "title": "Expense Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "income_account_id": {
            "title": "Income Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "deferral_account_id": {
            "title": "Deferral Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "asset_account_id": {
            "title": "Asset Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "discount_account_id": {
            "title": "Discount Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_classification_line_ids": {
            "title": "Default Classification Line Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "default_rev_rec_method": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecognitionStrategy"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_rev_rec_invoice_frequency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillingCadence"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_rev_rec_invoice_interval": {
            "title": "Default Rev Rec Invoice Interval",
            "minimum": 1,
            "type": [
              "integer",
              "null"
            ]
          },
          "default_standalone_selling_price": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Deprecated. Use prices.",
            "title": "Default Standalone Selling Price"
          },
          "default_standalone_selling_price_currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "const": "",
                "type": "string"
              }
            ],
            "default": "",
            "description": "Deprecated. Use prices.",
            "title": "Default Standalone Selling Price Currency Iso 4217 Code"
          },
          "prices": {
            "description": "Null keeps the stored prices. An empty list clears them.",
            "title": "Prices",
            "items": {
              "$ref": "#/components/schemas/ItemPriceSchemaIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "costing_method": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CostingMethod"
              },
              {
                "type": "null"
              }
            ]
          },
          "stock_unit": {
            "title": "Stock Unit",
            "maxLength": 16,
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "is_active",
          "sku",
          "item_type"
        ],
        "title": "PublicItemSchemaCreateIn",
        "type": "object"
      },
      "PublicItemSchemaUpdateIn": {
        "properties": {
          "name": {
            "maxLength": 256,
            "minLength": 2,
            "title": "Name",
            "type": "string"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "sku": {
            "maxLength": 64,
            "minLength": 1,
            "title": "Sku",
            "type": "string"
          },
          "description": {
            "default": "",
            "maxLength": 512,
            "minLength": 0,
            "title": "Description",
            "type": "string"
          },
          "item_type": {
            "$ref": "#/components/schemas/ItemTypes"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "product_tax_code_id": {
            "title": "Product Tax Code Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "expense_account_id": {
            "title": "Expense Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "income_account_id": {
            "title": "Income Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "deferral_account_id": {
            "title": "Deferral Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "asset_account_id": {
            "title": "Asset Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "discount_account_id": {
            "title": "Discount Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_classification_line_ids": {
            "title": "Default Classification Line Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "default_rev_rec_method": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecognitionStrategy"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_rev_rec_invoice_frequency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillingCadence"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_rev_rec_invoice_interval": {
            "title": "Default Rev Rec Invoice Interval",
            "minimum": 1,
            "type": [
              "integer",
              "null"
            ]
          },
          "default_standalone_selling_price": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Deprecated. Use prices.",
            "title": "Default Standalone Selling Price"
          },
          "default_standalone_selling_price_currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "const": "",
                "type": "string"
              }
            ],
            "default": "",
            "description": "Deprecated. Use prices.",
            "title": "Default Standalone Selling Price Currency Iso 4217 Code"
          },
          "prices": {
            "description": "Null keeps the stored prices. An empty list clears them.",
            "title": "Prices",
            "items": {
              "$ref": "#/components/schemas/ItemPriceSchemaIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "costing_method": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CostingMethod"
              },
              {
                "type": "null"
              }
            ]
          },
          "stock_unit": {
            "title": "Stock Unit",
            "maxLength": 16,
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "is_active",
          "sku",
          "item_type"
        ],
        "title": "PublicItemSchemaUpdateIn",
        "type": "object"
      },
      "PublicItemSchemaPatchIn": {
        "properties": {
          "name": {
            "title": "Name",
            "maxLength": 256,
            "minLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          },
          "sku": {
            "title": "Sku",
            "maxLength": 64,
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "title": "Description",
            "maxLength": 512,
            "minLength": 0,
            "type": [
              "string",
              "null"
            ]
          },
          "item_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTypes"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "product_tax_code_id": {
            "title": "Product Tax Code Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "expense_account_id": {
            "title": "Expense Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "income_account_id": {
            "title": "Income Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "deferral_account_id": {
            "title": "Deferral Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "asset_account_id": {
            "title": "Asset Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "discount_account_id": {
            "title": "Discount Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_classification_line_ids": {
            "title": "Default Classification Line Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "default_rev_rec_method": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecognitionStrategy"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_rev_rec_invoice_frequency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillingCadence"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_rev_rec_invoice_interval": {
            "title": "Default Rev Rec Invoice Interval",
            "minimum": 1,
            "type": [
              "integer",
              "null"
            ]
          },
          "default_standalone_selling_price": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Deprecated. Use prices.",
            "title": "Default Standalone Selling Price"
          },
          "default_standalone_selling_price_currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "const": "",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Deprecated. Use prices.",
            "title": "Default Standalone Selling Price Currency Iso 4217 Code"
          },
          "prices": {
            "description": "Null keeps the stored prices. An empty list clears them.",
            "title": "Prices",
            "items": {
              "$ref": "#/components/schemas/ItemPriceSchemaIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "costing_method": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CostingMethod"
              },
              {
                "type": "null"
              }
            ]
          },
          "stock_unit": {
            "title": "Stock Unit",
            "maxLength": 16,
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicItemSchemaPatchIn",
        "type": "object"
      },
      "ListView": {
        "enum": [
          "compact"
        ],
        "title": "ListView",
        "type": "string"
      },
      "PublicVendorListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "vendor_type": {
            "title": "Vendor Type",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          },
          "unique_id": {
            "title": "Unique Id",
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "title": "Email",
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "title": "Website",
            "type": [
              "string",
              "null"
            ]
          },
          "single_address": {
            "title": "Single Address",
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "title": "Country",
            "items": {
              "$ref": "#/components/schemas/SystemCountries"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "state": {
            "title": "State",
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "title": "Phone",
            "type": [
              "string",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          },
          "is_1099_eligible": {
            "title": "Is 1099 Eligible",
            "type": [
              "boolean",
              "null"
            ]
          },
          "tin": {
            "title": "Tin",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "merged_into_id": {
            "title": "Merged Into Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "exclude_company_id": {
            "title": "Exclude Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "names": {
            "title": "Names",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status_scope": {
            "title": "Approval Status Scope",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "view": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ListView"
              },
              {
                "type": "null"
              }
            ]
          },
          "company_id_access": {
            "title": "Company Id Access",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicVendorListFilterSchema",
        "type": "object"
      },
      "PagedPublicVendorListSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicVendorListSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicVendorListSchemaOut",
        "type": "object"
      },
      "PublicVendorListAddressSchemaOut": {
        "properties": {
          "street": {
            "default": "",
            "title": "Street",
            "type": "string"
          },
          "city": {
            "default": "",
            "title": "City",
            "type": "string"
          },
          "state": {
            "default": "",
            "title": "State",
            "type": "string"
          },
          "postal_code": {
            "default": "",
            "title": "Postal Code",
            "type": "string"
          },
          "country": {
            "anyOf": [
              {
                "const": "",
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/SystemCountries"
              }
            ],
            "default": "",
            "title": "Country"
          },
          "second_line": {
            "default": "",
            "title": "Second Line",
            "type": "string"
          }
        },
        "title": "PublicVendorListAddressSchemaOut",
        "type": "object"
      },
      "PublicVendorListSchemaOut": {
        "properties": {
          "classification_line_ids": {
            "default": [],
            "items": {
              "type": "integer"
            },
            "title": "Classification Line Ids",
            "type": "array"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "type": [
              "string",
              "null"
            ]
          },
          "next_approvers": {
            "title": "Next Approvers",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rejected_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectedBySchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "date_style": {
            "title": "Date Style",
            "maxLength": 16,
            "type": [
              "string",
              "null"
            ]
          },
          "date_format_custom": {
            "title": "Date Format Custom",
            "maxLength": 16,
            "type": [
              "string",
              "null"
            ]
          },
          "is_withholding_tax_applicable": {
            "default": false,
            "description": "Shows that withholding tax applies to this vendor. DualEntry does not apply withholding tax from this value: send `withholding_tax_rate_id` on each line.",
            "title": "Is Withholding Tax Applicable",
            "type": "boolean"
          },
          "default_withholding_tax_rate_id": {
            "description": "ID of the withholding tax rate that the app suggests for the lines of this vendor. DualEntry does not copy it to lines that you send through the API.",
            "title": "Default Withholding Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_withholding_tax_payable_account_id": {
            "description": "ID of the liability account that DualEntry uses when a bill or direct expense of this vendor has withholding tax and no `withholding_tax_payable_account_id`.",
            "title": "Default Withholding Tax Payable Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "withholding_tax_agency_id": {
            "description": "ID of the vendor with `vendor_type` `tax_agency` that receives the withheld amounts. Use it as `tax_agency_id` on a remittance.",
            "title": "Withholding Tax Agency Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_withholding_tax_rate": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PublicVendorWithholdingTaxRateSchemaOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The default withholding tax rate of the vendor, or `null`."
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PublicVendorListAddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "vendor_type": {
            "title": "Vendor Type",
            "type": "string"
          },
          "tin": {
            "default": "",
            "description": "Tax identification number. The value is an empty string when the number is not set.",
            "title": "Tin",
            "type": "string"
          },
          "tin_type": {
            "default": "",
            "description": "Type of tax identification number: `ein`, `ssn`, `utr`, or `rfc` (Mexico). The value is an empty string when the type is not set.",
            "title": "Tin Type",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_name": {
            "title": "Company Name",
            "type": [
              "string",
              "null"
            ]
          },
          "customer_account_number": {
            "default": "",
            "title": "Customer Account Number",
            "type": "string"
          },
          "allowed_company_ids": {
            "default": [],
            "items": {
              "type": "integer"
            },
            "title": "Allowed Company Ids",
            "type": "array"
          },
          "merged_into_id": {
            "description": "When you merge this vendor into another vendor, the ID of that vendor.",
            "title": "Merged Into Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "single_address": {
            "title": "Single Address",
            "maxLength": 2048,
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCountries"
              },
              {
                "const": "",
                "type": "string"
              }
            ],
            "default": "",
            "maxLength": 2,
            "title": "Country"
          },
          "name": {
            "maxLength": 255,
            "title": "Name",
            "type": "string"
          },
          "unique_id": {
            "description": "External identifier supplied by the user to disambiguate vendors that share a display name (e.g. an ID from another system).",
            "title": "Unique Id",
            "maxLength": 64,
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "title": "Website",
            "maxLength": 128,
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "title": "Email",
            "maxLength": 128,
            "type": [
              "string",
              "null"
            ]
          },
          "is_active": {
            "default": true,
            "title": "Is Active",
            "type": "boolean"
          },
          "phone": {
            "title": "Phone",
            "maxLength": 64,
            "type": [
              "string",
              "null"
            ]
          },
          "is_1099_eligible": {
            "default": false,
            "title": "Is 1099 Eligible",
            "type": "boolean"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted",
            "title": "Record Status"
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "id",
          "address",
          "vendor_type",
          "name"
        ],
        "title": "PublicVendorListSchemaOut",
        "type": "object"
      },
      "PublicVendorWithholdingTaxRateSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "country_code": {
            "title": "Country Code",
            "type": "string"
          },
          "rate": {
            "examples": [
              "0.100000"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Rate",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "country_code",
          "rate"
        ],
        "title": "PublicVendorWithholdingTaxRateSchemaOut",
        "type": "object"
      },
      "BankAccountType": {
        "enum": [
          "checking",
          "savings"
        ],
        "title": "BankAccountType",
        "type": "string"
      },
      "PublicVendorSchemaOut": {
        "properties": {
          "gst_registration_numbers": {
            "items": {
              "$ref": "#/components/schemas/GstRegistrationItemSchemaOut"
            },
            "title": "Gst Registration Numbers",
            "type": "array"
          },
          "vat_registration_numbers": {
            "items": {
              "$ref": "#/components/schemas/VatRegistrationItemSchemaOut"
            },
            "title": "Vat Registration Numbers",
            "type": "array"
          },
          "classification_line_ids": {
            "default": [],
            "items": {
              "type": "integer"
            },
            "title": "Classification Line Ids",
            "type": "array"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "term_name": {
            "title": "Term Name",
            "type": "string"
          },
          "preferred_payment_method_id": {
            "title": "Preferred Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "preferred_payment_method_name": {
            "title": "Preferred Payment Method Name",
            "type": "string"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "type": [
              "string",
              "null"
            ]
          },
          "next_approvers": {
            "title": "Next Approvers",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rejected_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectedBySchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "date_style": {
            "title": "Date Style",
            "maxLength": 16,
            "type": [
              "string",
              "null"
            ]
          },
          "date_format_custom": {
            "title": "Date Format Custom",
            "maxLength": 16,
            "type": [
              "string",
              "null"
            ]
          },
          "is_withholding_tax_applicable": {
            "default": false,
            "description": "Shows that withholding tax applies to this vendor. DualEntry does not apply withholding tax from this value: send `withholding_tax_rate_id` on each line.",
            "title": "Is Withholding Tax Applicable",
            "type": "boolean"
          },
          "default_withholding_tax_rate_id": {
            "description": "ID of the withholding tax rate that the app suggests for the lines of this vendor. DualEntry does not copy it to lines that you send through the API.",
            "title": "Default Withholding Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_withholding_tax_payable_account_id": {
            "description": "ID of the liability account that DualEntry uses when a bill or direct expense of this vendor has withholding tax and no `withholding_tax_payable_account_id`.",
            "title": "Default Withholding Tax Payable Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "withholding_tax_agency_id": {
            "description": "ID of the vendor with `vendor_type` `tax_agency` that receives the withheld amounts. Use it as `tax_agency_id` on a remittance.",
            "title": "Withholding Tax Agency Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_withholding_tax_rate": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PublicVendorWithholdingTaxRateSchemaOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The default withholding tax rate of the vendor, or `null`."
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "vendor_type": {
            "title": "Vendor Type",
            "type": "string"
          },
          "tin": {
            "default": "",
            "description": "Tax identification number. The value is an empty string when the number is not set.",
            "title": "Tin",
            "type": "string"
          },
          "tin_type": {
            "default": "",
            "description": "Type of tax identification number: `ein`, `ssn`, `utr`, or `rfc` (Mexico). The value is an empty string when the type is not set.",
            "title": "Tin Type",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_name": {
            "title": "Company Name",
            "type": [
              "string",
              "null"
            ]
          },
          "customer_account_number": {
            "default": "",
            "title": "Customer Account Number",
            "type": "string"
          },
          "name_on_check": {
            "default": "",
            "title": "Name On Check",
            "type": "string"
          },
          "bank_account_number": {
            "default": "",
            "title": "Bank Account Number",
            "type": "string"
          },
          "bank_routing_number": {
            "default": "",
            "title": "Bank Routing Number",
            "type": "string"
          },
          "bank_account_type": {
            "anyOf": [
              {
                "const": "",
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/BankAccountType"
              }
            ],
            "default": "",
            "title": "Bank Account Type"
          },
          "default_expense_account_id": {
            "title": "Default Expense Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_ap_account_id": {
            "title": "Default Ap Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "allowed_company_ids": {
            "default": [],
            "items": {
              "type": "integer"
            },
            "title": "Allowed Company Ids",
            "type": "array"
          },
          "merged_into_id": {
            "description": "When you merge this vendor into another vendor, the ID of that vendor.",
            "title": "Merged Into Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "single_address": {
            "title": "Single Address",
            "maxLength": 2048,
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCountries"
              },
              {
                "const": "",
                "type": "string"
              }
            ],
            "default": "",
            "maxLength": 2,
            "title": "Country"
          },
          "name": {
            "maxLength": 255,
            "title": "Name",
            "type": "string"
          },
          "unique_id": {
            "description": "External identifier supplied by the user to disambiguate vendors that share a display name (e.g. an ID from another system).",
            "title": "Unique Id",
            "maxLength": 64,
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "title": "Website",
            "maxLength": 128,
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "title": "Email",
            "maxLength": 128,
            "type": [
              "string",
              "null"
            ]
          },
          "is_active": {
            "default": true,
            "title": "Is Active",
            "type": "boolean"
          },
          "phone": {
            "title": "Phone",
            "maxLength": 64,
            "type": [
              "string",
              "null"
            ]
          },
          "is_1099_eligible": {
            "default": false,
            "title": "Is 1099 Eligible",
            "type": "boolean"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted",
            "title": "Record Status"
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "term_id",
          "term_name",
          "preferred_payment_method_id",
          "preferred_payment_method_name",
          "id",
          "address",
          "vendor_type",
          "name"
        ],
        "title": "PublicVendorSchemaOut",
        "type": "object"
      },
      "PublicVendorSchemaCreateIn": {
        "properties": {
          "gst_registration_numbers": {
            "title": "Gst Registration Numbers",
            "items": {
              "$ref": "#/components/schemas/GstRegistrationItemSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "vat_registration_numbers": {
            "title": "Vat Registration Numbers",
            "items": {
              "$ref": "#/components/schemas/VatRegistrationItemSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date_style": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DateStyle"
              },
              {
                "type": "null"
              }
            ],
            "description": "Date display style: short, medium, long, or custom. Null means the organization default applies."
          },
          "date_format_custom": {
            "description": "Day.js / Moment-style date pattern (max 16 chars). Tokens: YYYY, YY, MMMM, MMM, MM, M, DD, D. Separators: / . - , and space. Examples: DD.MM.YYYY, MM/DD/YYYY, YYYY-MM-DD. Not ICU or raw Intl.",
            "title": "Date Format Custom",
            "maxLength": 16,
            "type": [
              "string",
              "null"
            ]
          },
          "is_withholding_tax_applicable": {
            "default": false,
            "description": "Shows that withholding tax applies to this vendor. DualEntry does not apply withholding tax from this value: send `withholding_tax_rate_id` on each line.",
            "title": "Is Withholding Tax Applicable",
            "type": "boolean"
          },
          "default_withholding_tax_rate_id": {
            "description": "ID of the withholding tax rate that the app suggests for the lines of this vendor. DualEntry does not copy it to lines that you send through the API.",
            "title": "Default Withholding Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_withholding_tax_payable_account_id": {
            "description": "ID of the liability account that DualEntry uses when a bill or direct expense of this vendor has withholding tax and no `withholding_tax_payable_account_id`.",
            "title": "Default Withholding Tax Payable Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "withholding_tax_agency_id": {
            "description": "ID of the vendor with `vendor_type` `tax_agency` that receives the withheld amounts. Use it as `tax_agency_id` on a remittance.",
            "title": "Withholding Tax Agency Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "vendor_type": {
            "$ref": "#/components/schemas/VendorTypes"
          },
          "name": {
            "maxLength": 255,
            "minLength": 2,
            "title": "Name",
            "type": "string"
          },
          "unique_id": {
            "title": "Unique Id",
            "maxLength": 64,
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "maxLength": 128,
            "title": "Email",
            "type": "string"
          },
          "phone": {
            "maxLength": 64,
            "pattern": "(?i)^(?:[0-9\\s+\\-.\\(\\)]*|[0-9\\s+\\-.\\(\\)]+(?:\\s*(?:x|ext\\.?|extension)\\s*\\d+))$",
            "title": "Phone",
            "type": "string"
          },
          "website": {
            "maxLength": 128,
            "title": "Website",
            "type": "string"
          },
          "single_address": {
            "default": "",
            "title": "Single Address",
            "maxLength": 2048,
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "anyOf": [
              {
                "const": "",
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/SystemCountries"
              }
            ],
            "default": "",
            "title": "Country"
          },
          "is_1099_eligible": {
            "default": false,
            "title": "Is 1099 Eligible",
            "type": "boolean"
          },
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "tin": {
            "default": "",
            "description": "Tax identification number. Set it together with `tin_type`. Format by type: `ein` `12-3456789`, `ssn` `123-45-6789`, `rfc` 3 or 4 uppercase letters, a `YYMMDD` date, 2 uppercase letters or digits, then a digit or `A`, for example `ABC010203XY9`. On an update, send an empty string or `null` to clear it.",
            "title": "Tin",
            "maxLength": 13,
            "type": [
              "string",
              "null"
            ]
          },
          "tin_type": {
            "anyOf": [
              {
                "const": "",
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/TINType"
              },
              {
                "type": "null"
              }
            ],
            "default": "",
            "description": "Type of tax identification number: `ein`, `ssn`, `utr`, or `rfc` (Mexico). Set it together with `tin`. On an update, send an empty string or `null` to clear it.",
            "title": "Tin Type"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_account_number": {
            "default": "",
            "maxLength": 128,
            "title": "Customer Account Number",
            "type": "string"
          },
          "name_on_check": {
            "default": "",
            "maxLength": 255,
            "title": "Name On Check",
            "type": "string"
          },
          "preferred_payment_method_id": {
            "title": "Preferred Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "bank_account_number": {
            "default": "",
            "maxLength": 34,
            "title": "Bank Account Number",
            "type": "string"
          },
          "bank_routing_number": {
            "default": "",
            "maxLength": 9,
            "title": "Bank Routing Number",
            "type": "string"
          },
          "bank_account_type": {
            "anyOf": [
              {
                "const": "",
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/BankAccountType"
              }
            ],
            "default": "",
            "title": "Bank Account Type"
          },
          "default_expense_account_id": {
            "title": "Default Expense Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_ap_account_id": {
            "title": "Default Ap Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "allowed_company_ids": {
            "description": "Company IDs allowed to use this vendor. Empty list means global (all companies).",
            "title": "Allowed Company Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "classification_line_ids": {
            "description": "Classification lines stored on this record.",
            "title": "Classification Line Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "is_active",
          "vendor_type",
          "name",
          "email",
          "phone",
          "website"
        ],
        "title": "PublicVendorSchemaCreateIn",
        "type": "object"
      },
      "VendorTypes": {
        "enum": [
          "individual",
          "company",
          "intercompany",
          "tax_agency"
        ],
        "title": "VendorTypes",
        "type": "string"
      },
      "VendorMergeResultSchemaOut": {
        "properties": {
          "success": {
            "const": true,
            "default": true,
            "title": "Success",
            "type": "boolean"
          },
          "target_vendor_id": {
            "title": "Target Vendor Id",
            "type": "integer"
          },
          "merged_vendor_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Merged Vendor Ids",
            "type": "array"
          },
          "moved_counts": {
            "additionalProperties": {
              "type": "integer"
            },
            "title": "Moved Counts",
            "type": "object"
          },
          "applied_field_sources": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "title": "Applied Field Sources",
            "type": "object"
          },
          "applied_custom_field_sources": {
            "additionalProperties": {
              "type": "integer"
            },
            "title": "Applied Custom Field Sources",
            "type": "object"
          },
          "reset_tax_1099_run_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Reset Tax 1099 Run Ids",
            "type": "array"
          }
        },
        "required": [
          "target_vendor_id",
          "merged_vendor_ids",
          "moved_counts",
          "applied_field_sources",
          "applied_custom_field_sources",
          "reset_tax_1099_run_ids"
        ],
        "title": "VendorMergeResultSchemaOut",
        "type": "object"
      },
      "VendorMergeField": {
        "enum": [
          "name",
          "email",
          "phone",
          "website",
          "address",
          "default_terms",
          "customer_account_number",
          "default_ap_account",
          "default_expense_account",
          "classifications",
          "company_access",
          "withholding_tax"
        ],
        "title": "VendorMergeField",
        "type": "string"
      },
      "VendorMergeSchemaIn": {
        "properties": {
          "target_vendor_id": {
            "description": "The ID of the vendor that stays. It keeps its ID, code and records.",
            "title": "Target Vendor Id",
            "type": "integer"
          },
          "source_vendor_ids": {
            "description": "The IDs of the duplicate vendors. The merge moves their records to the survivor, then archives them.",
            "items": {
              "type": "integer"
            },
            "maxItems": 25,
            "minItems": 1,
            "title": "Source Vendor Ids",
            "type": "array"
          },
          "field_sources": {
            "additionalProperties": {
              "type": "integer"
            },
            "description": "For each field, the ID of the vendor that gives the value to the survivor. A field that you do not name keeps the survivor value. When that value is empty, the field gets the first duplicate value.",
            "propertyNames": {
              "$ref": "#/components/schemas/VendorMergeField"
            },
            "title": "Field Sources",
            "type": "object"
          },
          "custom_field_sources": {
            "additionalProperties": {
              "type": "integer"
            },
            "description": "For each custom field ID, the ID of the vendor that gives the value to the survivor.",
            "title": "Custom Field Sources",
            "type": "object"
          }
        },
        "required": [
          "target_vendor_id",
          "source_vendor_ids"
        ],
        "title": "VendorMergeSchemaIn",
        "type": "object"
      },
      "PublicVendorSchemaUpdateIn": {
        "description": "Partial update payload for PUT /public/vendors/{id}/.\n\nEvery field is optional: send only the fields you want to change.\nUnset fields are left untouched on the existing record.",
        "properties": {
          "gst_registration_numbers": {
            "title": "Gst Registration Numbers",
            "items": {
              "$ref": "#/components/schemas/GstRegistrationItemSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "vat_registration_numbers": {
            "title": "Vat Registration Numbers",
            "items": {
              "$ref": "#/components/schemas/VatRegistrationItemSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date_style": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DateStyle"
              },
              {
                "type": "null"
              }
            ],
            "description": "Date display style: short, medium, long, or custom. Null means the organization default applies."
          },
          "date_format_custom": {
            "description": "Day.js / Moment-style date pattern (max 16 chars). Tokens: YYYY, YY, MMMM, MMM, MM, M, DD, D. Separators: / . - , and space. Examples: DD.MM.YYYY, MM/DD/YYYY, YYYY-MM-DD. Not ICU or raw Intl.",
            "title": "Date Format Custom",
            "maxLength": 16,
            "type": [
              "string",
              "null"
            ]
          },
          "is_withholding_tax_applicable": {
            "description": "Shows that withholding tax applies to this vendor. DualEntry does not apply withholding tax from this value: send `withholding_tax_rate_id` on each line. Omit the field to keep the stored value.",
            "title": "Is Withholding Tax Applicable",
            "type": [
              "boolean",
              "null"
            ]
          },
          "default_withholding_tax_rate_id": {
            "description": "ID of the withholding tax rate that the app suggests for the lines of this vendor. DualEntry does not copy it to lines that you send through the API. Omit the field to keep the stored value, or send `null` to clear it.",
            "title": "Default Withholding Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_withholding_tax_payable_account_id": {
            "description": "ID of the liability account that DualEntry uses when a bill or direct expense of this vendor has withholding tax and no `withholding_tax_payable_account_id`. Omit the field to keep the stored value, or send `null` to clear it.",
            "title": "Default Withholding Tax Payable Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "withholding_tax_agency_id": {
            "description": "ID of the vendor with `vendor_type` `tax_agency` that receives the withheld amounts. Use it as `tax_agency_id` on a remittance. Omit the field to keep the stored value, or send `null` to clear it.",
            "title": "Withholding Tax Agency Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          },
          "vendor_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VendorTypes"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "title": "Name",
            "maxLength": 255,
            "minLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "unique_id": {
            "title": "Unique Id",
            "maxLength": 64,
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "title": "Email",
            "maxLength": 128,
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "title": "Phone",
            "maxLength": 64,
            "pattern": "(?i)^(?:[0-9\\s+\\-.\\(\\)]*|[0-9\\s+\\-.\\(\\)]+(?:\\s*(?:x|ext\\.?|extension)\\s*\\d+))$",
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "title": "Website",
            "maxLength": 128,
            "type": [
              "string",
              "null"
            ]
          },
          "single_address": {
            "title": "Single Address",
            "maxLength": 2048,
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "anyOf": [
              {
                "const": "",
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/SystemCountries"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "is_1099_eligible": {
            "title": "Is 1099 Eligible",
            "type": [
              "boolean",
              "null"
            ]
          },
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "tin": {
            "description": "Tax identification number. Set it together with `tin_type`. Format by type: `ein` `12-3456789`, `ssn` `123-45-6789`, `rfc` 3 or 4 uppercase letters, a `YYMMDD` date, 2 uppercase letters or digits, then a digit or `A`, for example `ABC010203XY9`. On an update, send an empty string or `null` to clear it.",
            "title": "Tin",
            "maxLength": 13,
            "type": [
              "string",
              "null"
            ]
          },
          "tin_type": {
            "anyOf": [
              {
                "const": "",
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/TINType"
              },
              {
                "type": "null"
              }
            ],
            "description": "Type of tax identification number: `ein`, `ssn`, `utr`, or `rfc` (Mexico). Set it together with `tin`. On an update, send an empty string or `null` to clear it.",
            "title": "Tin Type"
          },
          "attachments": {
            "title": "Attachments",
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_account_number": {
            "title": "Customer Account Number",
            "maxLength": 128,
            "type": [
              "string",
              "null"
            ]
          },
          "name_on_check": {
            "title": "Name On Check",
            "maxLength": 255,
            "type": [
              "string",
              "null"
            ]
          },
          "preferred_payment_method_id": {
            "title": "Preferred Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "bank_account_number": {
            "title": "Bank Account Number",
            "maxLength": 34,
            "type": [
              "string",
              "null"
            ]
          },
          "bank_routing_number": {
            "title": "Bank Routing Number",
            "maxLength": 9,
            "type": [
              "string",
              "null"
            ]
          },
          "bank_account_type": {
            "anyOf": [
              {
                "const": "",
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/BankAccountType"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bank Account Type"
          },
          "default_expense_account_id": {
            "title": "Default Expense Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_ap_account_id": {
            "title": "Default Ap Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "allowed_company_ids": {
            "description": "Company IDs allowed to use this vendor. Empty list means global (all companies). Omit or send null to leave unchanged.",
            "title": "Allowed Company Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "classification_line_ids": {
            "description": "Classification lines stored on this record.",
            "title": "Classification Line Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "title": "PublicVendorSchemaUpdateIn",
        "type": "object"
      },
      "PublicVendorSchemaPatchIn": {
        "description": "Partial update payload for PATCH /public/vendors/{id}/.\n\nEvery field is optional: send only the fields you want to change.\nUnset fields are left untouched on the existing record.",
        "properties": {
          "gst_registration_numbers": {
            "title": "Gst Registration Numbers",
            "items": {
              "$ref": "#/components/schemas/GstRegistrationItemSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "vat_registration_numbers": {
            "title": "Vat Registration Numbers",
            "items": {
              "$ref": "#/components/schemas/VatRegistrationItemSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "date_style": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DateStyle"
              },
              {
                "type": "null"
              }
            ],
            "description": "Date display style: short, medium, long, or custom. Null means the organization default applies."
          },
          "date_format_custom": {
            "description": "Day.js / Moment-style date pattern (max 16 chars). Tokens: YYYY, YY, MMMM, MMM, MM, M, DD, D. Separators: / . - , and space. Examples: DD.MM.YYYY, MM/DD/YYYY, YYYY-MM-DD. Not ICU or raw Intl.",
            "title": "Date Format Custom",
            "maxLength": 16,
            "type": [
              "string",
              "null"
            ]
          },
          "is_withholding_tax_applicable": {
            "description": "Shows that withholding tax applies to this vendor. DualEntry does not apply withholding tax from this value: send `withholding_tax_rate_id` on each line. Omit the field to keep the stored value.",
            "title": "Is Withholding Tax Applicable",
            "type": [
              "boolean",
              "null"
            ]
          },
          "default_withholding_tax_rate_id": {
            "description": "ID of the withholding tax rate that the app suggests for the lines of this vendor. DualEntry does not copy it to lines that you send through the API. Omit the field to keep the stored value, or send `null` to clear it.",
            "title": "Default Withholding Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_withholding_tax_payable_account_id": {
            "description": "ID of the liability account that DualEntry uses when a bill or direct expense of this vendor has withholding tax and no `withholding_tax_payable_account_id`. Omit the field to keep the stored value, or send `null` to clear it.",
            "title": "Default Withholding Tax Payable Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "withholding_tax_agency_id": {
            "description": "ID of the vendor with `vendor_type` `tax_agency` that receives the withheld amounts. Use it as `tax_agency_id` on a remittance. Omit the field to keep the stored value, or send `null` to clear it.",
            "title": "Withholding Tax Agency Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          },
          "vendor_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VendorTypes"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "title": "Name",
            "maxLength": 255,
            "minLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "unique_id": {
            "title": "Unique Id",
            "maxLength": 64,
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "title": "Email",
            "maxLength": 128,
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "title": "Phone",
            "maxLength": 64,
            "pattern": "(?i)^(?:[0-9\\s+\\-.\\(\\)]*|[0-9\\s+\\-.\\(\\)]+(?:\\s*(?:x|ext\\.?|extension)\\s*\\d+))$",
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "title": "Website",
            "maxLength": 128,
            "type": [
              "string",
              "null"
            ]
          },
          "single_address": {
            "title": "Single Address",
            "maxLength": 2048,
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "anyOf": [
              {
                "const": "",
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/SystemCountries"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "is_1099_eligible": {
            "title": "Is 1099 Eligible",
            "type": [
              "boolean",
              "null"
            ]
          },
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "tin": {
            "description": "Tax identification number. Set it together with `tin_type`. Format by type: `ein` `12-3456789`, `ssn` `123-45-6789`, `rfc` 3 or 4 uppercase letters, a `YYMMDD` date, 2 uppercase letters or digits, then a digit or `A`, for example `ABC010203XY9`. On an update, send an empty string or `null` to clear it.",
            "title": "Tin",
            "maxLength": 13,
            "type": [
              "string",
              "null"
            ]
          },
          "tin_type": {
            "anyOf": [
              {
                "const": "",
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/TINType"
              },
              {
                "type": "null"
              }
            ],
            "description": "Type of tax identification number: `ein`, `ssn`, `utr`, or `rfc` (Mexico). Set it together with `tin`. On an update, send an empty string or `null` to clear it.",
            "title": "Tin Type"
          },
          "attachments": {
            "title": "Attachments",
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_account_number": {
            "title": "Customer Account Number",
            "maxLength": 128,
            "type": [
              "string",
              "null"
            ]
          },
          "name_on_check": {
            "title": "Name On Check",
            "maxLength": 255,
            "type": [
              "string",
              "null"
            ]
          },
          "preferred_payment_method_id": {
            "title": "Preferred Payment Method Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "bank_account_number": {
            "title": "Bank Account Number",
            "maxLength": 34,
            "type": [
              "string",
              "null"
            ]
          },
          "bank_routing_number": {
            "title": "Bank Routing Number",
            "maxLength": 9,
            "type": [
              "string",
              "null"
            ]
          },
          "bank_account_type": {
            "anyOf": [
              {
                "const": "",
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/BankAccountType"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bank Account Type"
          },
          "default_expense_account_id": {
            "title": "Default Expense Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_ap_account_id": {
            "title": "Default Ap Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "allowed_company_ids": {
            "description": "Company IDs allowed to use this vendor. Empty list means global (all companies). Omit or send null to leave unchanged.",
            "title": "Allowed Company Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "classification_line_ids": {
            "description": "Classification lines stored on this record.",
            "title": "Classification Line Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "title": "PublicVendorSchemaPatchIn",
        "type": "object"
      },
      "PublicClassificationListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          },
          "is_required": {
            "title": "Is Required",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "title": "PublicClassificationListFilterSchema",
        "type": "object"
      },
      "PagedPublicClassificationSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicClassificationSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicClassificationSchemaOut",
        "type": "object"
      },
      "PublicClassifiableRecords": {
        "enum": [
          "purchase_order",
          "sales_order",
          "cash_sale",
          "invoice",
          "bill",
          "direct_expense",
          "vendor_credit",
          "journal_entry",
          "intercompany_journal_entry",
          "customer_credit",
          "customer_deposit",
          "customer_payment",
          "item",
          "customer",
          "vendor",
          "statistical_journal"
        ],
        "title": "PublicClassifiableRecords",
        "type": "string"
      },
      "PublicClassificationSchemaOut": {
        "properties": {
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "type": [
              "string",
              "null"
            ]
          },
          "next_approvers": {
            "title": "Next Approvers",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rejected_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectedBySchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "selections": {
            "items": {
              "$ref": "#/components/schemas/PublicSelectionItemOut"
            },
            "title": "Selections",
            "type": "array"
          },
          "required_for_records": {
            "items": {
              "$ref": "#/components/schemas/PublicClassifiableRecords"
            },
            "title": "Required For Records",
            "type": "array"
          },
          "parent_id": {
            "title": "Parent Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "parent_name": {
            "title": "Parent Name",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "maxLength": 128,
            "title": "Name",
            "type": "string"
          },
          "is_active": {
            "default": true,
            "title": "Is Active",
            "type": "boolean"
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "id",
          "selections",
          "required_for_records",
          "parent_id",
          "parent_name",
          "name"
        ],
        "title": "PublicClassificationSchemaOut",
        "type": "object"
      },
      "PublicSelectionItemOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "maxLength": 128,
            "minLength": 2,
            "title": "Name",
            "type": "string"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "parent_id": {
            "title": "Parent Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "parent_name": {
            "title": "Parent Name",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "is_active",
          "parent_id",
          "parent_name"
        ],
        "title": "PublicSelectionItemOut",
        "type": "object"
      },
      "PublicClassificationSchemaCreateIn": {
        "properties": {
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "maxLength": 128,
            "minLength": 2,
            "title": "Name",
            "type": "string"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "selections": {
            "items": {
              "$ref": "#/components/schemas/PublicSelectionItemIn"
            },
            "title": "Selections",
            "type": "array"
          },
          "required_for_records": {
            "items": {
              "$ref": "#/components/schemas/PublicClassifiableRecords"
            },
            "title": "Required For Records",
            "type": "array"
          },
          "parent_id": {
            "title": "Parent Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "is_active",
          "selections",
          "required_for_records",
          "parent_id"
        ],
        "title": "PublicClassificationSchemaCreateIn",
        "type": "object"
      },
      "PublicSelectionItemIn": {
        "properties": {
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "maxLength": 128,
            "minLength": 2,
            "title": "Name",
            "type": "string"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "parent_id": {
            "title": "Parent Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "is_active",
          "parent_id"
        ],
        "title": "PublicSelectionItemIn",
        "type": "object"
      },
      "PublicClassificationSchemaUpdateIn": {
        "properties": {
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "maxLength": 128,
            "minLength": 2,
            "title": "Name",
            "type": "string"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "selections": {
            "items": {
              "$ref": "#/components/schemas/PublicSelectionItemIn"
            },
            "title": "Selections",
            "type": "array"
          },
          "required_for_records": {
            "items": {
              "$ref": "#/components/schemas/PublicClassifiableRecords"
            },
            "title": "Required For Records",
            "type": "array"
          },
          "parent_id": {
            "title": "Parent Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "is_active",
          "selections",
          "required_for_records",
          "parent_id"
        ],
        "title": "PublicClassificationSchemaUpdateIn",
        "type": "object"
      },
      "PublicClassificationSchemaPatchIn": {
        "description": "Partial update payload for `PATCH /public/classifications/{id}/`.\n\nEvery field is optional: send only the fields you want to change.\nUnset fields are left untouched on the existing record.\n\nNote on list fields:\n\n- `selections` absent \u2192 existing classification lines are preserved.\n  Sending `[]` deletes all existing lines.\n- `required_for_records` absent \u2192 existing record-type associations\n  are preserved. Sending `[]` removes them all.",
        "properties": {
          "name": {
            "title": "Name",
            "maxLength": 128,
            "minLength": 2,
            "type": [
              "string",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          },
          "selections": {
            "title": "Selections",
            "items": {
              "$ref": "#/components/schemas/PublicSelectionItemIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "required_for_records": {
            "title": "Required For Records",
            "items": {
              "$ref": "#/components/schemas/PublicClassifiableRecords"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "parent_id": {
            "title": "Parent Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "title": "PublicClassificationSchemaPatchIn",
        "type": "object"
      },
      "PublicClassificationLineListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          },
          "classification_id": {
            "title": "Classification Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "title": "PublicClassificationLineListFilterSchema",
        "type": "object"
      },
      "PagedPublicClassificationLineSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicClassificationLineSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicClassificationLineSchemaOut",
        "type": "object"
      },
      "PublicClassificationLineSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "classification_id": {
            "title": "Classification Id",
            "type": "integer"
          },
          "classification_name": {
            "title": "Classification Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "is_active",
          "classification_id",
          "classification_name"
        ],
        "title": "PublicClassificationLineSchemaOut",
        "type": "object"
      },
      "PublicCustomFieldListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "field_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FieldType"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicCustomFieldListFilterSchema",
        "type": "object"
      },
      "PagedPublicCustomFieldSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomFieldSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicCustomFieldSchemaOut",
        "type": "object"
      },
      "PublicCustomFieldSchemaOut": {
        "properties": {
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_ids": {
            "default": [],
            "items": {
              "type": "integer"
            },
            "title": "Company Ids",
            "type": "array"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": [
              "string",
              "null"
            ]
          },
          "helper_text": {
            "title": "Helper Text",
            "type": [
              "string",
              "null"
            ]
          },
          "field_type": {
            "$ref": "#/components/schemas/FieldType"
          },
          "applies_to": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AppliesToItemSchema"
            },
            "title": "Applies To",
            "type": "array"
          },
          "default_value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Value"
          },
          "options": {
            "title": "Options",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "id",
          "name",
          "field_type",
          "is_active"
        ],
        "title": "PublicCustomFieldSchemaOut",
        "type": "object"
      },
      "PublicCustomFieldSchemaCreateIn": {
        "properties": {
          "name": {
            "maxLength": 32,
            "minLength": 2,
            "title": "Name",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": [
              "string",
              "null"
            ]
          },
          "helper_text": {
            "title": "Helper Text",
            "type": [
              "string",
              "null"
            ]
          },
          "field_type": {
            "$ref": "#/components/schemas/FieldType"
          },
          "applies_to": {
            "items": {
              "$ref": "#/components/schemas/AppliesToItemSchema"
            },
            "title": "Applies To",
            "type": "array"
          },
          "default_value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Value"
          },
          "company_id": {
            "description": "Single company id this custom field is scoped to (merged into `company_ids`). Omit for an org-wide field.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_ids": {
            "description": "List of company ids this custom field is scoped to. Omit for an org-wide field.",
            "title": "Company Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "is_active": {
            "default": true,
            "title": "Is Active",
            "type": "boolean"
          },
          "options": {
            "description": "Allowed values for single_select / multi_select fields",
            "title": "Options",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "field_type",
          "applies_to"
        ],
        "title": "PublicCustomFieldSchemaCreateIn",
        "type": "object"
      },
      "PublicCustomFieldSchemaUpdateIn": {
        "properties": {
          "name": {
            "maxLength": 32,
            "minLength": 2,
            "title": "Name",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": [
              "string",
              "null"
            ]
          },
          "helper_text": {
            "title": "Helper Text",
            "type": [
              "string",
              "null"
            ]
          },
          "field_type": {
            "$ref": "#/components/schemas/FieldType"
          },
          "applies_to": {
            "items": {
              "$ref": "#/components/schemas/AppliesToItemSchema"
            },
            "title": "Applies To",
            "type": "array"
          },
          "default_value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Value"
          },
          "company_id": {
            "description": "Single company id this custom field is scoped to (merged into `company_ids`). Omit for an org-wide field.",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_ids": {
            "description": "List of company ids this custom field is scoped to. Omit for an org-wide field.",
            "title": "Company Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "is_active": {
            "default": true,
            "title": "Is Active",
            "type": "boolean"
          },
          "options": {
            "description": "Allowed values for single_select / multi_select fields",
            "title": "Options",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "field_type",
          "applies_to"
        ],
        "title": "PublicCustomFieldSchemaUpdateIn",
        "type": "object"
      },
      "PaperCheckSourceRecordType": {
        "description": "Allowed source record types for paper checks.",
        "enum": [
          "direct_expense",
          "vendor_payment",
          "vendor_prepayment",
          "customer_refund"
        ],
        "title": "PaperCheckSourceRecordType",
        "type": "string"
      },
      "PublicPaperCheckListFilterSchema": {
        "description": "Filter schema for listing paper checks.\n\nAll filters are optional and can be combined. Multiple values for the same\nfilter are treated as OR conditions.",
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "description": "Filter by paper check IDs",
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "description": "Filter by status: 'not_printed', 'printed', or 'archived'",
            "title": "Record Status",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "description": "Filter by company IDs",
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "transaction_type": {
            "description": "Filter by transaction type: 'direct_expense', 'vendor_payment', 'vendor_prepayment', 'customer_refund'",
            "title": "Transaction Type",
            "items": {
              "$ref": "#/components/schemas/PaperCheckSourceRecordType"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "vendor_id": {
            "description": "Filter by vendor IDs (for vendor-related checks)",
            "title": "Vendor Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "customer_id": {
            "description": "Filter by customer IDs (for customer refund checks)",
            "title": "Customer Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "account_id": {
            "description": "Filter by bank account IDs",
            "title": "Account Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "description": "Filter checks created on or after this date (YYYY-MM-DD)",
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "description": "Filter checks created on or before this date (YYYY-MM-DD)",
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicPaperCheckListFilterSchema",
        "type": "object"
      },
      "PagedPublicPaperCheckSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicPaperCheckSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicPaperCheckSchemaOut",
        "type": "object"
      },
      "PublicPaperCheckSchemaOut": {
        "description": "Schema for paper check output in the public API.\n\nA paper check represents a physical check that can be printed for payments.\nPaper checks are associated with transactions such as vendor payments,\ndirect expenses, vendor prepayments, or customer refunds.",
        "properties": {
          "id": {
            "description": "Unique identifier for the paper check",
            "example": 12345,
            "title": "Id",
            "type": "integer"
          },
          "code": {
            "description": "Business identifier for the paper check",
            "example": "PC-000123",
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "description": "Date when the paper check was created (returned as date only)",
            "example": "2024-01-15",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "transaction_date": {
            "description": "Date of the underlying transaction",
            "example": "2024-01-15",
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "source_record_type": {
            "$ref": "#/components/schemas/PaperCheckSourceRecordType",
            "description": "Type of the source record (e.g., 'direct_expense', 'vendor_payment', 'customer_refund')",
            "example": "vendor_payment"
          },
          "source_record_id": {
            "description": "ID of the source record (e.g., the VendorPayment ID)",
            "example": 789,
            "title": "Source Record Id",
            "type": "integer"
          },
          "source_record_number": {
            "description": "Number of the source record (e.g., vendor payment number)",
            "example": 1001,
            "title": "Source Record Number",
            "type": "integer"
          },
          "check_number": {
            "description": "The check number printed on the physical check",
            "example": "10542",
            "title": "Check Number",
            "type": "string"
          },
          "company_id": {
            "description": "ID of the company issuing the check",
            "example": 456,
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "description": "Name of the company issuing the check",
            "example": "Acme Corporation",
            "title": "Company Name",
            "type": "string"
          },
          "memo": {
            "description": "Memo or description for the check",
            "example": "Payment for Invoice #1234",
            "title": "Memo",
            "type": "string"
          },
          "amount": {
            "description": "Amount of the check",
            "example": "1500.00",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies",
            "description": "ISO 4217 currency code for the check amount",
            "example": "USD"
          },
          "account_number": {
            "description": "Number of the bank account the check is drawn from",
            "example": 321,
            "title": "Account Number",
            "type": "integer"
          },
          "account_name": {
            "description": "Name of the bank account the check is drawn from",
            "example": "Operating Account",
            "title": "Account Name",
            "type": "string"
          },
          "payee_name": {
            "description": "Name of the payee (vendor or customer receiving the check)",
            "example": "ABC Suppliers Inc.",
            "title": "Payee Name",
            "type": [
              "string",
              "null"
            ]
          },
          "customer_id": {
            "description": "ID of the customer if this is a customer refund check",
            "example": 567,
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_name": {
            "description": "Name of the customer if this is a customer refund check",
            "example": "John Smith",
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_id": {
            "description": "ID of the vendor if this is a vendor payment check",
            "example": 890,
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_name": {
            "description": "Name of the vendor if this is a vendor payment check",
            "example": "ABC Suppliers Inc.",
            "title": "Vendor Name",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "description": "Status of the paper check: 'not_printed' (queued), 'printed', or 'archived'",
            "enum": [
              "printed",
              "not_printed",
              "archived"
            ],
            "example": "printed",
            "title": "Record Status",
            "type": "string"
          }
        },
        "required": [
          "id",
          "created_at",
          "transaction_date",
          "source_record_type",
          "source_record_id",
          "source_record_number",
          "check_number",
          "company_id",
          "company_name",
          "memo",
          "amount",
          "currency_iso_4217_code",
          "account_number",
          "account_name",
          "record_status"
        ],
        "title": "PublicPaperCheckSchemaOut",
        "type": "object"
      },
      "PublicPaperCheckWithPDFContentSchemaOut": {
        "description": "Schema for paper check with PDF content.\n\nReturned when immediately printing a check. Contains both the paper check\ndetails and the PDF content encoded in base64.",
        "properties": {
          "paper_check": {
            "$ref": "#/components/schemas/PublicPaperCheckSchemaOut",
            "description": "The created paper check details"
          },
          "pdf_content": {
            "description": "Base64-encoded PDF content of the printed check",
            "title": "Pdf Content",
            "type": "string"
          }
        },
        "required": [
          "paper_check",
          "pdf_content"
        ],
        "title": "PublicPaperCheckWithPDFContentSchemaOut",
        "type": "object"
      },
      "PublicPrintNowPayload": {
        "description": "Request body for immediately printing a check.\n\nUse this endpoint when you need to print a single check right away.\nThe check will be created and marked as PRINTED immediately.",
        "properties": {
          "transaction_id": {
            "description": "ID of the transaction to print a check for. Must be a printable transaction type (direct expense, vendor payment, vendor prepayment, or customer refund).",
            "example": 12345,
            "title": "Transaction Id",
            "type": "integer"
          },
          "template_id": {
            "description": "Optional ID of a PaperCheckTemplate to use for formatting. If not provided, the default template will be used.",
            "example": 1,
            "title": "Template Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "transaction_id"
        ],
        "title": "PublicPrintNowPayload",
        "type": "object"
      },
      "PublicPrintLaterPayload": {
        "description": "Request body for queuing checks for later batch printing.\n\nUse this endpoint when you want to queue multiple checks to be printed\ntogether in a batch. The checks will be created with status NOT_PRINTED.",
        "properties": {
          "transaction_ids": {
            "description": "List of transaction IDs to create paper checks for. Each transaction must be a printable type and must not already have an active paper check.",
            "example": [
              12345,
              12346,
              12347
            ],
            "items": {
              "type": "integer"
            },
            "title": "Transaction Ids",
            "type": "array"
          }
        },
        "required": [
          "transaction_ids"
        ],
        "title": "PublicPrintLaterPayload",
        "type": "object"
      },
      "PublicPaperCheckBatchPrintResponse": {
        "description": "Schema for batch print response.\n\nContains the merged PDF with all checks and metadata about each printed check.",
        "properties": {
          "pdf_content": {
            "description": "Base64-encoded PDF content containing all printed checks",
            "title": "Pdf Content",
            "type": "string"
          },
          "printed_checks": {
            "description": "List of checks that were printed with their assigned check numbers",
            "items": {
              "$ref": "#/components/schemas/PublicPrintBatchResponseItem"
            },
            "title": "Printed Checks",
            "type": "array"
          },
          "total_printed": {
            "description": "Total number of checks printed in this batch",
            "example": 5,
            "title": "Total Printed",
            "type": "integer"
          }
        },
        "required": [
          "pdf_content",
          "printed_checks",
          "total_printed"
        ],
        "title": "PublicPaperCheckBatchPrintResponse",
        "type": "object"
      },
      "PublicPrintBatchResponseItem": {
        "description": "Details of a single check printed in a batch.",
        "properties": {
          "paper_check_id": {
            "description": "ID of the paper check that was printed",
            "example": 12345,
            "title": "Paper Check Id",
            "type": "integer"
          },
          "check_number": {
            "description": "The check number assigned to this check",
            "example": "10542",
            "title": "Check Number",
            "type": "string"
          }
        },
        "required": [
          "paper_check_id",
          "check_number"
        ],
        "title": "PublicPrintBatchResponseItem",
        "type": "object"
      },
      "PublicPrintBatchPayload": {
        "description": "Request body for batch printing queued checks.\n\nUse this endpoint to print multiple queued checks at once. Check numbers\nwill be assigned sequentially starting from `first_check_number`.",
        "properties": {
          "paper_check_ids": {
            "description": "List of paper check IDs to print. Checks must have status 'not_printed'. The order of IDs determines the order of checks in the PDF and check number assignment.",
            "example": [
              101,
              102,
              103
            ],
            "items": {
              "type": "integer"
            },
            "title": "Paper Check Ids",
            "type": "array"
          },
          "first_check_number": {
            "description": "Starting check number for this batch. If None, auto-assigns from bank account sequence. Subsequent checks will be numbered sequentially.",
            "example": 10001,
            "title": "First Check Number",
            "minimum": 1,
            "type": [
              "integer",
              "null"
            ]
          },
          "template_id": {
            "description": "Optional ID of a PaperCheckTemplate to use for formatting. If not provided, the default template will be used.",
            "example": 1,
            "title": "Template Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "paper_check_ids"
        ],
        "title": "PublicPrintBatchPayload",
        "type": "object"
      },
      "PublicRecordType": {
        "description": "Supported record types for workflows.",
        "enum": [
          "invoice",
          "bill",
          "journal_entry",
          "bank_transfer",
          "purchase_order",
          "sales_order",
          "intercompany_journal_entry",
          "vendor",
          "customer",
          "account",
          "company",
          "custom_field",
          "item",
          "contract",
          "amortizable_asset",
          "fixed_asset",
          "customer_credit",
          "direct_expense",
          "cash_sale",
          "customer_prepayment",
          "customer_deposit",
          "customer_payment",
          "customer_refund",
          "vendor_prepayment_application",
          "customer_prepayment_application",
          "vendor_payment",
          "vendor_credit",
          "vendor_refund",
          "vendor_prepayment",
          "revenue_recognition_batch",
          "classification",
          "classification_line",
          "quote"
        ],
        "title": "PublicRecordType",
        "type": "string"
      },
      "PublicWorkflowListFilterSchema": {
        "description": "Filter schema for listing workflows.",
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PublicRecordType"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "title": "PublicWorkflowListFilterSchema",
        "type": "object"
      },
      "PagedPublicWorkflowListSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicWorkflowListSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicWorkflowListSchemaOut",
        "type": "object"
      },
      "PublicWorkflowListSchemaOut": {
        "description": "Schema for workflow list output (lighter than full schema).",
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "record_type": {
            "$ref": "#/components/schemas/PublicRecordType"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "version": {
            "title": "Version",
            "type": "integer"
          },
          "priority": {
            "title": "Priority",
            "type": "integer"
          },
          "company_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Company Ids",
            "type": "array"
          },
          "applies_to_all_companies": {
            "title": "Applies To All Companies",
            "type": "boolean"
          },
          "allow_self_approval": {
            "title": "Allow Self Approval",
            "type": "boolean"
          },
          "pending_approval_count": {
            "title": "Pending Approval Count",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "record_type",
          "name",
          "is_active",
          "description",
          "version",
          "priority",
          "company_ids",
          "applies_to_all_companies",
          "allow_self_approval",
          "pending_approval_count"
        ],
        "title": "PublicWorkflowListSchemaOut",
        "type": "object"
      },
      "PagedPublicApproverSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicApproverSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicApproverSchemaOut",
        "type": "object"
      },
      "PublicApproverSchemaOut": {
        "description": "Schema for approver information.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "first_name": {
            "title": "First Name",
            "type": "string"
          },
          "last_name": {
            "title": "Last Name",
            "type": "string"
          },
          "email": {
            "title": "Email",
            "type": "string"
          }
        },
        "required": [
          "id",
          "first_name",
          "last_name",
          "email"
        ],
        "title": "PublicApproverSchemaOut",
        "type": "object"
      },
      "PublicExecutionStateListFilterSchema": {
        "description": "Filter schema for listing execution states.",
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "workflow_id": {
            "title": "Workflow Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "status": {
            "title": "Status",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_type": {
            "title": "Record Type",
            "type": [
              "string",
              "null"
            ]
          },
          "initiator_id": {
            "title": "Initiator Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "title": "PublicExecutionStateListFilterSchema",
        "type": "object"
      },
      "PagedPublicWorkflowExecutionStateSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicWorkflowExecutionStateSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicWorkflowExecutionStateSchemaOut",
        "type": "object"
      },
      "PublicWorkflowExecutionStateSchemaOut": {
        "description": "Schema for workflow execution state output.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "workflow_id": {
            "title": "Workflow Id",
            "type": "integer"
          },
          "workflow_name": {
            "title": "Workflow Name",
            "type": "string"
          },
          "record_id": {
            "title": "Record Id",
            "type": "integer"
          },
          "record_type": {
            "title": "Record Type",
            "type": "string"
          },
          "current_step": {
            "title": "Current Step",
            "type": "integer"
          },
          "current_substep": {
            "title": "Current Substep",
            "type": "integer"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "requested_approver_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Requested Approver Ids",
            "type": "array"
          },
          "approved_by_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Approved By Ids",
            "type": "array"
          },
          "rejected_by_id": {
            "title": "Rejected By Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "rejection_reason": {
            "title": "Rejection Reason",
            "type": [
              "string",
              "null"
            ]
          },
          "initiator_id": {
            "title": "Initiator Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "workflow_id",
          "workflow_name",
          "record_id",
          "record_type",
          "current_step",
          "current_substep",
          "status",
          "requested_approver_ids",
          "approved_by_ids",
          "rejected_by_id",
          "rejection_reason",
          "initiator_id",
          "created_at",
          "updated_at"
        ],
        "title": "PublicWorkflowExecutionStateSchemaOut",
        "type": "object"
      },
      "PublicApprovalActionSchemaOut": {
        "description": "Schema for approval action (history) output.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "workflow_execution_state_id": {
            "title": "Workflow Execution State Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_id": {
            "title": "Record Id",
            "type": "integer"
          },
          "record_type": {
            "title": "Record Type",
            "type": "string"
          },
          "approver": {
            "$ref": "#/components/schemas/PublicApproverSchemaOut"
          },
          "action_type": {
            "title": "Action Type",
            "type": "string"
          },
          "rejection_reason": {
            "title": "Rejection Reason",
            "type": [
              "string",
              "null"
            ]
          },
          "step_name": {
            "title": "Step Name",
            "type": "string"
          },
          "step_order": {
            "title": "Step Order",
            "type": "integer"
          },
          "substep_order": {
            "title": "Substep Order",
            "type": [
              "integer",
              "null"
            ]
          },
          "workflow_version": {
            "title": "Workflow Version",
            "type": "integer"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "workflow_execution_state_id",
          "record_id",
          "record_type",
          "approver",
          "action_type",
          "rejection_reason",
          "step_name",
          "step_order",
          "substep_order",
          "workflow_version",
          "created_at"
        ],
        "title": "PublicApprovalActionSchemaOut",
        "type": "object"
      },
      "PublicApprovalActionListFilterSchema": {
        "description": "Filter schema for listing approval actions.",
        "properties": {
          "workflow_execution_state_id": {
            "title": "Workflow Execution State Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_type": {
            "title": "Record Type",
            "type": [
              "string",
              "null"
            ]
          },
          "record_id": {
            "title": "Record Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "action_type": {
            "title": "Action Type",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approver_id": {
            "title": "Approver Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicApprovalActionListFilterSchema",
        "type": "object"
      },
      "PagedPublicApprovalActionSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicApprovalActionSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicApprovalActionSchemaOut",
        "type": "object"
      },
      "PublicRoleMetadataSchemaOut": {
        "description": "Schema for role metadata in workflow context.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "descriptive_name": {
            "title": "Descriptive Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "descriptive_name"
        ],
        "title": "PublicRoleMetadataSchemaOut",
        "type": "object"
      },
      "ConditionOperatorEnum": {
        "description": "Comparison operators for workflow conditions.",
        "enum": [
          "eq",
          "neq",
          "gt",
          "lt",
          "gte",
          "lte",
          "contains",
          "not_contains",
          "starts_with",
          "ends_with",
          "in",
          "not_in",
          "between",
          "contains_any",
          "contains_all",
          "not_contains_any"
        ],
        "title": "ConditionOperatorEnum",
        "type": "string"
      },
      "LogicalOperatorEnum": {
        "description": "Logical operators for connecting conditions.",
        "enum": [
          "and",
          "or",
          "not"
        ],
        "title": "LogicalOperatorEnum",
        "type": "string"
      },
      "PublicConditionItemSchemaOut": {
        "description": "Schema for a single condition item in the flat conditions list (output).",
        "properties": {
          "field": {
            "title": "Field",
            "type": "string"
          },
          "operator": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConditionOperatorEnum"
              },
              {
                "type": "null"
              }
            ]
          },
          "value": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "string"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Value"
          },
          "logical_operator": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LogicalOperatorEnum"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_field_id": {
            "title": "Custom Field Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "custom_field_name": {
            "title": "Custom Field Name",
            "type": [
              "string",
              "null"
            ]
          },
          "custom_field_type": {
            "title": "Custom Field Type",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "field"
        ],
        "title": "PublicConditionItemSchemaOut",
        "type": "object"
      },
      "PublicStepSchemaOut": {
        "description": "Schema for workflow step output.",
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "order": {
            "title": "Order",
            "type": "integer"
          },
          "conditions": {
            "items": {
              "$ref": "#/components/schemas/PublicConditionItemSchemaOut"
            },
            "title": "Conditions",
            "type": "array"
          },
          "substeps": {
            "title": "Substeps",
            "items": {
              "$ref": "#/components/schemas/PublicSubstepSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approver_ids": {
            "title": "Approver Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approve_condition": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApproveCondition"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "name",
          "order",
          "conditions",
          "substeps",
          "approver_ids",
          "approve_condition"
        ],
        "title": "PublicStepSchemaOut",
        "type": "object"
      },
      "PublicSubstepSchemaOut": {
        "description": "Schema for substep output.",
        "properties": {
          "order": {
            "title": "Order",
            "type": "integer"
          },
          "approver_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Approver Ids",
            "type": "array"
          },
          "approve_condition": {
            "$ref": "#/components/schemas/ApproveCondition"
          }
        },
        "required": [
          "order",
          "approver_ids",
          "approve_condition"
        ],
        "title": "PublicSubstepSchemaOut",
        "type": "object"
      },
      "PublicWorkflowSchemaOut": {
        "description": "Schema for workflow output.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "record_type": {
            "$ref": "#/components/schemas/PublicRecordType"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "version": {
            "title": "Version",
            "type": "integer"
          },
          "priority": {
            "title": "Priority",
            "type": "integer"
          },
          "company_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Company Ids",
            "type": "array"
          },
          "applies_to_all_companies": {
            "title": "Applies To All Companies",
            "type": "boolean"
          },
          "allow_self_approval": {
            "title": "Allow Self Approval",
            "type": "boolean"
          },
          "steps": {
            "items": {
              "$ref": "#/components/schemas/PublicStepSchemaOut"
            },
            "title": "Steps",
            "type": "array"
          },
          "pending_approval_count": {
            "title": "Pending Approval Count",
            "type": "integer"
          },
          "roles": {
            "additionalProperties": {
              "type": "string"
            },
            "title": "Roles",
            "type": "object"
          }
        },
        "required": [
          "id",
          "record_type",
          "name",
          "is_active",
          "description",
          "version",
          "priority",
          "company_ids",
          "applies_to_all_companies",
          "allow_self_approval",
          "steps",
          "pending_approval_count",
          "roles"
        ],
        "title": "PublicWorkflowSchemaOut",
        "type": "object"
      },
      "PublicChangedBySchema": {
        "description": "Schema for user who made a change.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "first_name": {
            "title": "First Name",
            "type": "string"
          },
          "last_name": {
            "title": "Last Name",
            "type": "string"
          },
          "email": {
            "title": "Email",
            "type": "string"
          }
        },
        "required": [
          "id",
          "first_name",
          "last_name",
          "email"
        ],
        "title": "PublicChangedBySchema",
        "type": "object"
      },
      "PublicWorkflowVersionSchemaOut": {
        "description": "Schema for workflow version history.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "version_number": {
            "title": "Version Number",
            "type": "integer"
          },
          "changed_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PublicChangedBySchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "changed_at": {
            "format": "date-time",
            "title": "Changed At",
            "type": "string"
          },
          "changes_summary": {
            "title": "Changes Summary",
            "type": "string"
          },
          "snapshot": {
            "title": "Snapshot",
            "additionalProperties": true,
            "type": [
              "object",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "version_number",
          "changed_by",
          "changed_at",
          "changes_summary"
        ],
        "title": "PublicWorkflowVersionSchemaOut",
        "type": "object"
      },
      "PublicInboxSummarySchemaOut": {
        "description": "Summary schema for inbox base endpoint.",
        "properties": {
          "transactions_count": {
            "title": "Transactions Count",
            "type": "integer"
          },
          "records_count": {
            "title": "Records Count",
            "type": "integer"
          }
        },
        "required": [
          "transactions_count",
          "records_count"
        ],
        "title": "PublicInboxSummarySchemaOut",
        "type": "object"
      },
      "PublicTransactionInboxListFilterSchema": {
        "description": "Filter schema for transactions inbox (public API - no filter_by_me).",
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_type": {
            "title": "Transaction Type",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_id": {
            "title": "Record Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "transaction_id": {
            "title": "Transaction Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "title": "PublicTransactionInboxListFilterSchema",
        "type": "object"
      },
      "PagedPublicTransactionInboxSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicTransactionInboxSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicTransactionInboxSchemaOut",
        "type": "object"
      },
      "PublicApprovalInfoSchema": {
        "description": "Schema for complete approval workflow information.",
        "properties": {
          "workflow_name": {
            "title": "Workflow Name",
            "type": "string"
          },
          "workflow_version": {
            "title": "Workflow Version",
            "type": "integer"
          },
          "step_name": {
            "title": "Step Name",
            "type": "string"
          },
          "current_substep": {
            "title": "Current Substep",
            "type": "integer"
          },
          "substeps": {
            "items": {
              "$ref": "#/components/schemas/PublicSubstepInfoSchema"
            },
            "title": "Substeps",
            "type": "array"
          }
        },
        "required": [
          "workflow_name",
          "workflow_version",
          "step_name",
          "current_substep",
          "substeps"
        ],
        "title": "PublicApprovalInfoSchema",
        "type": "object"
      },
      "PublicApproverSchema": {
        "description": "Schema for approver information.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "first_name": {
            "title": "First Name",
            "type": "string"
          },
          "last_name": {
            "title": "Last Name",
            "type": "string"
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "full_name": {
            "title": "Full Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "first_name",
          "last_name",
          "email",
          "full_name"
        ],
        "title": "PublicApproverSchema",
        "type": "object"
      },
      "PublicSubstepInfoSchema": {
        "description": "Schema for individual substep information in approval workflow.",
        "properties": {
          "order": {
            "title": "Order",
            "type": "integer"
          },
          "status": {
            "$ref": "#/components/schemas/SubstepStatus"
          },
          "approve_condition": {
            "$ref": "#/components/schemas/ApproveCondition"
          },
          "approvers": {
            "items": {
              "$ref": "#/components/schemas/PublicApproverSchema"
            },
            "title": "Approvers",
            "type": "array"
          },
          "approved_by": {
            "items": {
              "$ref": "#/components/schemas/PublicApproverSchema"
            },
            "title": "Approved By",
            "type": "array"
          },
          "rejected_by": {
            "items": {
              "$ref": "#/components/schemas/PublicApproverSchema"
            },
            "title": "Rejected By",
            "type": "array"
          }
        },
        "required": [
          "order",
          "status",
          "approve_condition",
          "approvers",
          "approved_by",
          "rejected_by"
        ],
        "title": "PublicSubstepInfoSchema",
        "type": "object"
      },
      "PublicTransactionInboxSchemaOut": {
        "description": "Schema for transaction-based records in the inbox (monetary entities).",
        "properties": {
          "transaction_type": {
            "title": "Transaction Type",
            "type": "string"
          },
          "number": {
            "title": "Number",
            "type": "string"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "customer_vendor": {
            "title": "Customer Vendor",
            "type": [
              "string",
              "null"
            ]
          },
          "company": {
            "title": "Company",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "approval_status": {
            "title": "Approval Status",
            "type": "string"
          },
          "workflow_id": {
            "title": "Workflow Id",
            "type": "integer"
          },
          "record_id": {
            "title": "Record Id",
            "type": "integer"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "approval_info": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PublicApprovalInfoSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "initiator_id": {
            "title": "Initiator Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "state_id": {
            "title": "State Id",
            "type": "integer"
          },
          "rejected_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectedBySchema"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "transaction_type",
          "number",
          "date",
          "customer_vendor",
          "company",
          "company_id",
          "memo",
          "amount",
          "approval_status",
          "workflow_id",
          "record_id",
          "created_at",
          "updated_at",
          "approval_info",
          "state_id"
        ],
        "title": "PublicTransactionInboxSchemaOut",
        "type": "object"
      },
      "PublicRecordInboxListFilterSchema": {
        "description": "Filter schema for records inbox (public API - no filter_by_me).",
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "record_type": {
            "title": "Record Type",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_id": {
            "title": "Record Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "title": "PublicRecordInboxListFilterSchema",
        "type": "object"
      },
      "PagedPublicRecordInboxSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicRecordInboxSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicRecordInboxSchemaOut",
        "type": "object"
      },
      "PublicRecordInboxSchemaOut": {
        "description": "Schema for non-monetary records in the inbox (customers, vendors).",
        "properties": {
          "record_type": {
            "title": "Record Type",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "approval_status": {
            "title": "Approval Status",
            "type": "string"
          },
          "approver": {
            "title": "Approver",
            "type": "string"
          },
          "workflow_id": {
            "title": "Workflow Id",
            "type": "integer"
          },
          "record_id": {
            "title": "Record Id",
            "type": "integer"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "approval_info": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PublicApprovalInfoSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "initiator_id": {
            "title": "Initiator Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "state_id": {
            "title": "State Id",
            "type": "integer"
          },
          "rejected_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectedBySchema"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "record_type",
          "name",
          "approval_status",
          "approver",
          "workflow_id",
          "record_id",
          "created_at",
          "updated_at",
          "approval_info",
          "state_id"
        ],
        "title": "PublicRecordInboxSchemaOut",
        "type": "object"
      },
      "FixedAssetStatus": {
        "enum": [
          "active",
          "inactive",
          "disposed",
          "fully_amortized"
        ],
        "title": "FixedAssetStatus",
        "type": "string"
      },
      "V2FixedAssetListFilterSchema": {
        "description": "V2 filter schema - inherits all filters from V1.",
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "status": {
            "title": "Status",
            "items": {
              "$ref": "#/components/schemas/FixedAssetStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "purchase_date_gte": {
            "title": "Purchase Date Gte",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "purchase_date_lte": {
            "title": "Purchase Date Lte",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "fixed_asset_class_id": {
            "title": "Fixed Asset Class Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "asset_account_id": {
            "title": "Asset Account Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "expense_account_id": {
            "title": "Expense Account Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "accumulation_account_id": {
            "title": "Accumulation Account Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "purchase_cost_min": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Purchase Cost Min"
          },
          "purchase_cost_max": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Purchase Cost Max"
          },
          "approval_status": {
            "title": "Approval Status",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status_scope": {
            "title": "Approval Status Scope",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "title": "V2FixedAssetListFilterSchema",
        "type": "object"
      },
      "CustomDepreciationScheduleItemOut": {
        "properties": {
          "value": {
            "title": "Value",
            "type": "string"
          },
          "period_count": {
            "title": "Period Count",
            "type": "integer"
          }
        },
        "required": [
          "value",
          "period_count"
        ],
        "title": "CustomDepreciationScheduleItemOut",
        "type": "object"
      },
      "CustomScheduleType": {
        "enum": [
          "cost_percentage",
          "net_book_value_percentage",
          "fixed_amount",
          "net_book_value_amount"
        ],
        "title": "CustomScheduleType",
        "type": "string"
      },
      "DepreciationConvention": {
        "enum": [
          "mid_month",
          "half_month",
          "full_month",
          "mid_quarter",
          "half_year",
          "full_year"
        ],
        "title": "DepreciationConvention",
        "type": "string"
      },
      "DepreciationFrequency": {
        "enum": [
          "monthly",
          "yearly"
        ],
        "title": "DepreciationFrequency",
        "type": "string"
      },
      "DepreciationMethod": {
        "enum": [
          "straight_line",
          "straight_line_prorate_even",
          "declining_balance",
          "double_declining",
          "macrs_gds",
          "macrs_ads",
          "custom"
        ],
        "title": "DepreciationMethod",
        "type": "string"
      },
      "DepreciationScheduleOut": {
        "description": "Output schema for a single depreciation schedule (one per book).",
        "properties": {
          "depreciation_book_code": {
            "title": "Depreciation Book Code",
            "type": "string"
          },
          "depreciation_book_name": {
            "title": "Depreciation Book Name",
            "type": "string"
          },
          "is_posting": {
            "title": "Is Posting",
            "type": "boolean"
          },
          "useful_life": {
            "title": "Useful Life",
            "type": [
              "integer",
              "null"
            ]
          },
          "salvage_value": {
            "title": "Salvage Value",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "depreciation_method": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DepreciationMethod"
              },
              {
                "type": "null"
              }
            ]
          },
          "depreciation_start_date": {
            "title": "Depreciation Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "convention": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DepreciationConvention"
              },
              {
                "type": "null"
              }
            ]
          },
          "depreciation_frequency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DepreciationFrequency"
              },
              {
                "type": "null"
              }
            ]
          },
          "accumulated_beginning_balance": {
            "title": "Accumulated Beginning Balance",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "accumulated_through": {
            "title": "Accumulated Through",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "acceleration_factor": {
            "title": "Acceleration Factor",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "property_class": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MacrsPropertyClass"
              },
              {
                "type": "null"
              }
            ]
          },
          "ads_recovery_period": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MacrsAdsRecoveryPeriod"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_schedule": {
            "title": "Custom Schedule",
            "items": {
              "$ref": "#/components/schemas/CustomDepreciationScheduleItemOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "custom_schedule_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomScheduleType"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "depreciation_book_code",
          "depreciation_book_name",
          "is_posting"
        ],
        "title": "DepreciationScheduleOut",
        "type": "object"
      },
      "FixedAssetSourceLineType": {
        "description": "Type of source line that can be linked to a Fixed Asset.",
        "enum": [
          "bill_line",
          "direct_expense_line",
          "journal_entry_line"
        ],
        "title": "FixedAssetSourceLineType",
        "type": "string"
      },
      "MacrsAdsRecoveryPeriod": {
        "description": "IRS MACRS ADS recovery period in years (straight-line). Used for ADS table lookups.",
        "enum": [
          3,
          4,
          5,
          6,
          7,
          9,
          10,
          12,
          15,
          18,
          20,
          25,
          30,
          35,
          40,
          50
        ],
        "title": "MacrsAdsRecoveryPeriod",
        "type": "integer"
      },
      "MacrsPropertyClass": {
        "description": "IRS MACRS GDS property classes. Value stored as integer (27.5-year \u2192 27).",
        "enum": [
          3,
          5,
          7,
          10,
          15,
          20,
          27,
          39
        ],
        "title": "MacrsPropertyClass",
        "type": "integer"
      },
      "PagedV2FixedAssetSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/V2FixedAssetSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedV2FixedAssetSchemaOut",
        "type": "object"
      },
      "V2FixedAssetSchemaOut": {
        "description": "V2 output schema with multi-book `depreciation_schedules` array.",
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "approval_status": {
            "title": "Approval Status",
            "type": [
              "string",
              "null"
            ]
          },
          "next_approvers": {
            "title": "Next Approvers",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rejected_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectedBySchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "serial_number": {
            "title": "Serial Number",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "purchase_date": {
            "format": "date",
            "title": "Purchase Date",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "cost": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Cost",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/FixedAssetStatus"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "asset_account_number": {
            "title": "Asset Account Number",
            "type": "integer"
          },
          "expense_account_number": {
            "title": "Expense Account Number",
            "type": "integer"
          },
          "accumulation_account_number": {
            "title": "Accumulation Account Number",
            "type": "integer"
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": [
              "string",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "fixed_asset_class_id": {
            "title": "Fixed Asset Class Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "depreciation_schedules": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/DepreciationScheduleOut"
            },
            "title": "Depreciation Schedules",
            "type": "array"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "source_lines": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/V2FixedAssetSourceOut"
            },
            "title": "Source Lines",
            "type": "array"
          }
        },
        "required": [
          "internal_id",
          "number",
          "company_id",
          "company_name",
          "name",
          "serial_number",
          "currency_iso_4217_code",
          "exchange_rate",
          "purchase_date",
          "memo",
          "cost",
          "status",
          "record_status",
          "asset_account_number",
          "expense_account_number",
          "accumulation_account_number"
        ],
        "title": "V2FixedAssetSchemaOut",
        "type": "object"
      },
      "V2FixedAssetSourceOut": {
        "properties": {
          "type": {
            "$ref": "#/components/schemas/FixedAssetSourceLineType"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "parent_record_id": {
            "title": "Parent Record Id",
            "type": "integer"
          }
        },
        "required": [
          "type",
          "id",
          "parent_record_id"
        ],
        "title": "V2FixedAssetSourceOut",
        "type": "object"
      },
      "CustomDepreciationScheduleItemIn": {
        "properties": {
          "value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$",
                "type": "string"
              }
            ],
            "title": "Value"
          },
          "period_count": {
            "title": "Period Count",
            "type": "integer"
          }
        },
        "required": [
          "value",
          "period_count"
        ],
        "title": "CustomDepreciationScheduleItemIn",
        "type": "object"
      },
      "DepreciationScheduleIn": {
        "description": "Input schema for a single depreciation schedule.",
        "properties": {
          "depreciation_book_code": {
            "description": "Book code (e.g., 'BOOK', 'FEDERAL', 'AMT')",
            "title": "Depreciation Book Code",
            "type": "string"
          },
          "useful_life": {
            "title": "Useful Life",
            "type": [
              "integer",
              "null"
            ]
          },
          "salvage_value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Salvage Value"
          },
          "depreciation_method": {
            "$ref": "#/components/schemas/DepreciationMethod"
          },
          "depreciation_start_date": {
            "format": "date",
            "title": "Depreciation Start Date",
            "type": "string"
          },
          "convention": {
            "$ref": "#/components/schemas/DepreciationConvention"
          },
          "depreciation_frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DepreciationFrequency"
              }
            ],
            "default": "monthly"
          },
          "acceleration_factor": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "default": "1.0",
            "title": "Acceleration Factor"
          },
          "accumulated_beginning_balance": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "default": "0",
            "title": "Accumulated Beginning Balance"
          },
          "accumulated_through": {
            "title": "Accumulated Through",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "property_class": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MacrsPropertyClass"
              },
              {
                "type": "null"
              }
            ]
          },
          "ads_recovery_period": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MacrsAdsRecoveryPeriod"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_schedule": {
            "title": "Custom Schedule",
            "items": {
              "$ref": "#/components/schemas/CustomDepreciationScheduleItemIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "custom_schedule_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomScheduleType"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "depreciation_book_code",
          "depreciation_method",
          "depreciation_start_date",
          "convention"
        ],
        "title": "DepreciationScheduleIn",
        "type": "object"
      },
      "FixedAssetSourceIn": {
        "properties": {
          "type": {
            "$ref": "#/components/schemas/FixedAssetSourceLineType"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          }
        },
        "required": [
          "type",
          "id"
        ],
        "title": "FixedAssetSourceIn",
        "type": "object"
      },
      "V2FixedAssetSchemaCreateIn": {
        "description": "V2 input schema with multi-book `depreciation_schedules` array.",
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "serial_number": {
            "default": "",
            "title": "Serial Number",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "purchase_date": {
            "format": "date",
            "title": "Purchase Date",
            "type": "string"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "cost": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Cost"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FixedAssetStatus"
              }
            ],
            "default": "active",
            "description": "Only Active and Inactive can be set by users; Disposed and Fully Amortized are system-managed."
          },
          "asset_account_number": {
            "title": "Asset Account Number",
            "type": "integer"
          },
          "expense_account_number": {
            "title": "Expense Account Number",
            "type": "integer"
          },
          "accumulation_account_number": {
            "title": "Accumulation Account Number",
            "type": "integer"
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "fixed_asset_class_id": {
            "title": "Fixed Asset Class Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "depreciation_schedules": {
            "description": "At least one schedule required. Must include exactly one schedule with `depreciation_book_code` set to `BOOK`.",
            "items": {
              "$ref": "#/components/schemas/DepreciationScheduleIn"
            },
            "minItems": 1,
            "title": "Depreciation Schedules",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "source_lines": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/FixedAssetSourceIn"
            },
            "title": "Source Lines",
            "type": "array"
          }
        },
        "required": [
          "company_id",
          "name",
          "currency_iso_4217_code",
          "exchange_rate",
          "purchase_date",
          "cost",
          "asset_account_number",
          "expense_account_number",
          "accumulation_account_number",
          "depreciation_schedules"
        ],
        "title": "V2FixedAssetSchemaCreateIn",
        "type": "object"
      },
      "V2FixedAssetSchemaUpdateIn": {
        "properties": {
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "serial_number": {
            "default": "",
            "title": "Serial Number",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "purchase_date": {
            "format": "date",
            "title": "Purchase Date",
            "type": "string"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "cost": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Cost"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FixedAssetStatus"
              }
            ],
            "default": "active",
            "description": "Only Active and Inactive can be set by users; Disposed and Fully Amortized are system-managed."
          },
          "asset_account_number": {
            "title": "Asset Account Number",
            "type": "integer"
          },
          "expense_account_number": {
            "title": "Expense Account Number",
            "type": "integer"
          },
          "accumulation_account_number": {
            "title": "Accumulation Account Number",
            "type": "integer"
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "fixed_asset_class_id": {
            "title": "Fixed Asset Class Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "depreciation_schedules": {
            "description": "At least one schedule required. Must include exactly one schedule with `depreciation_book_code` set to `BOOK`.",
            "items": {
              "$ref": "#/components/schemas/DepreciationScheduleIn"
            },
            "minItems": 1,
            "title": "Depreciation Schedules",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "source_lines": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/FixedAssetSourceIn"
            },
            "title": "Source Lines",
            "type": "array"
          }
        },
        "required": [
          "company_id",
          "name",
          "currency_iso_4217_code",
          "exchange_rate",
          "purchase_date",
          "cost",
          "asset_account_number",
          "expense_account_number",
          "accumulation_account_number",
          "depreciation_schedules"
        ],
        "title": "V2FixedAssetSchemaUpdateIn",
        "type": "object"
      },
      "V2FixedAssetSchemaPatchIn": {
        "description": "V2 `PATCH` schema. If `depreciation_schedules` is sent, it replaces all existing schedules.",
        "properties": {
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          },
          "serial_number": {
            "title": "Serial Number",
            "type": [
              "string",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exchange Rate"
          },
          "purchase_date": {
            "title": "Purchase Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "cost": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cost"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FixedAssetStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "asset_account_number": {
            "title": "Asset Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "expense_account_number": {
            "title": "Expense Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "accumulation_account_number": {
            "title": "Accumulation Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "fixed_asset_class_id": {
            "title": "Fixed Asset Class Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "depreciation_schedules": {
            "title": "Depreciation Schedules",
            "items": {
              "$ref": "#/components/schemas/DepreciationScheduleIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachments": {
            "title": "Attachments",
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "classifications": {
            "title": "Classifications",
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "source_lines": {
            "title": "Source Lines",
            "items": {
              "$ref": "#/components/schemas/FixedAssetSourceIn"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "title": "V2FixedAssetSchemaPatchIn",
        "type": "object"
      },
      "PublicScheduleQueryParams": {
        "properties": {
          "from_date": {
            "title": "From Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "to_date": {
            "title": "To Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicScheduleQueryParams",
        "type": "object"
      },
      "DepreciationScheduleEventStatus": {
        "enum": [
          "posted",
          "scheduled",
          "archived",
          "created",
          "initiated"
        ],
        "title": "DepreciationScheduleEventStatus",
        "type": "string"
      },
      "DepreciationScheduleItemType": {
        "enum": [
          "purchase",
          "depreciation_start",
          "depreciation",
          "disposal",
          "revaluation"
        ],
        "title": "DepreciationScheduleItemType",
        "type": "string"
      },
      "PublicDepreciationScheduleItemOut": {
        "description": "Single schedule event (depreciation, disposal, or revaluation) for one fixed asset + book.",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/DepreciationScheduleItemType"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "depreciation_id": {
            "title": "Depreciation Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "period": {
            "title": "Period",
            "type": [
              "string",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "depreciation_amount": {
            "title": "Depreciation Amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "accumulated_depreciation": {
            "title": "Accumulated Depreciation",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "net_book_value": {
            "title": "Net Book Value",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DepreciationScheduleEventStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "revaluation_id": {
            "title": "Revaluation Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "new_asset_value": {
            "title": "New Asset Value",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "disposal_id": {
            "title": "Disposal Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "disposal_type": {
            "title": "Disposal Type",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "type",
          "date"
        ],
        "title": "PublicDepreciationScheduleItemOut",
        "type": "object"
      },
      "FixedAssetClassListFilterSchema": {
        "description": "List filter for Active/Archived tabs; `search` uses OpenSearch (name), status/company are DB filters.",
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "status": {
            "default": "active",
            "description": "Tab: active or archived",
            "title": "Status",
            "enum": [
              "active",
              "archived"
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "Filter by name (DB icontains)",
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "description": "Filter by company",
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "title": "FixedAssetClassListFilterSchema",
        "type": "object"
      },
      "FixedAssetClassBookDefaultSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "depreciation_book_id": {
            "title": "Depreciation Book Id",
            "type": "integer"
          },
          "useful_life": {
            "title": "Useful Life",
            "type": [
              "integer",
              "null"
            ]
          },
          "depreciation_method": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DepreciationMethod"
              },
              {
                "type": "null"
              }
            ]
          },
          "depreciation_frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DepreciationFrequency"
              }
            ],
            "default": "monthly"
          },
          "convention": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DepreciationConvention"
              },
              {
                "type": "null"
              }
            ]
          },
          "salvage_value": {
            "title": "Salvage Value",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "acceleration_factor": {
            "title": "Acceleration Factor",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "property_class": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MacrsPropertyClass"
              },
              {
                "type": "null"
              }
            ]
          },
          "ads_recovery_period": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MacrsAdsRecoveryPeriod"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_schedule": {
            "title": "Custom Schedule",
            "items": {
              "$ref": "#/components/schemas/CustomDepreciationScheduleItemOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "custom_schedule_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomScheduleType"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "depreciation_book_id"
        ],
        "title": "FixedAssetClassBookDefaultSchemaOut",
        "type": "object"
      },
      "FixedAssetClassSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "asset_account_id": {
            "title": "Asset Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "expense_account_id": {
            "title": "Expense Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "accumulation_account_id": {
            "title": "Accumulation Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "book_defaults": {
            "items": {
              "$ref": "#/components/schemas/FixedAssetClassBookDefaultSchemaOut"
            },
            "title": "Book Defaults",
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "status",
          "book_defaults"
        ],
        "title": "FixedAssetClassSchemaOut",
        "type": "object"
      },
      "PagedFixedAssetClassSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/FixedAssetClassSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedFixedAssetClassSchemaOut",
        "type": "object"
      },
      "WebhookCreateSchemaOut": {
        "properties": {
          "uuid": {
            "title": "Uuid",
            "type": "string"
          },
          "url": {
            "title": "Url",
            "type": "string"
          },
          "topics": {
            "items": {
              "type": "string"
            },
            "title": "Topics",
            "type": "array"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "disabled_at": {
            "title": "Disabled At",
            "type": [
              "string",
              "null"
            ]
          },
          "disabled_reason": {
            "default": "",
            "title": "Disabled Reason",
            "type": "string"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "last_modified_at": {
            "title": "Last Modified At",
            "type": "string"
          },
          "secret": {
            "title": "Secret",
            "type": "string"
          }
        },
        "required": [
          "uuid",
          "url",
          "topics",
          "is_active",
          "created_at",
          "last_modified_at",
          "secret"
        ],
        "title": "WebhookCreateSchemaOut",
        "type": "object"
      },
      "WebhookSchemaCreateIn": {
        "properties": {
          "url": {
            "maxLength": 1024,
            "title": "Url",
            "type": "string"
          },
          "topics": {
            "items": {
              "type": "string"
            },
            "title": "Topics",
            "type": "array"
          }
        },
        "required": [
          "url"
        ],
        "title": "WebhookSchemaCreateIn",
        "type": "object"
      },
      "WebhookListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "title": "WebhookListFilterSchema",
        "type": "object"
      },
      "PagedWebhookSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/WebhookSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedWebhookSchemaOut",
        "type": "object"
      },
      "WebhookSchemaOut": {
        "properties": {
          "uuid": {
            "title": "Uuid",
            "type": "string"
          },
          "url": {
            "title": "Url",
            "type": "string"
          },
          "topics": {
            "items": {
              "type": "string"
            },
            "title": "Topics",
            "type": "array"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "disabled_at": {
            "title": "Disabled At",
            "type": [
              "string",
              "null"
            ]
          },
          "disabled_reason": {
            "default": "",
            "title": "Disabled Reason",
            "type": "string"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "last_modified_at": {
            "title": "Last Modified At",
            "type": "string"
          }
        },
        "required": [
          "uuid",
          "url",
          "topics",
          "is_active",
          "created_at",
          "last_modified_at"
        ],
        "title": "WebhookSchemaOut",
        "type": "object"
      },
      "WebhookTopicSchemaOut": {
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "title": "WebhookTopicSchemaOut",
        "type": "object"
      },
      "WebhookSchemaUpdateIn": {
        "properties": {
          "url": {
            "title": "Url",
            "maxLength": 1024,
            "type": [
              "string",
              "null"
            ]
          },
          "topics": {
            "title": "Topics",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "title": "WebhookSchemaUpdateIn",
        "type": "object"
      },
      "PagedWebhookDeliverySchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/WebhookDeliverySchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedWebhookDeliverySchemaOut",
        "type": "object"
      },
      "WebhookDeliverySchemaOut": {
        "properties": {
          "event_id": {
            "title": "Event Id",
            "type": "string"
          },
          "topic": {
            "title": "Topic",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "attempts": {
            "title": "Attempts",
            "type": "integer"
          },
          "response_status": {
            "title": "Response Status",
            "type": [
              "integer",
              "null"
            ]
          },
          "last_error": {
            "title": "Last Error",
            "type": "string"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "delivered_at": {
            "title": "Delivered At",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "event_id",
          "topic",
          "status",
          "attempts",
          "last_error",
          "created_at"
        ],
        "title": "WebhookDeliverySchemaOut",
        "type": "object"
      },
      "PublicExportJobRequestSchemaOut": {
        "description": "Envelope for `POST /export-jobs/`: the job to poll, plus whether it was already running.",
        "properties": {
          "job": {
            "$ref": "#/components/schemas/PublicExportJobSchemaOut"
          },
          "deduplicated": {
            "description": "`true` when an export was already in progress and that existing job is returned instead of a new one.",
            "title": "Deduplicated",
            "type": "boolean"
          }
        },
        "required": [
          "job",
          "deduplicated"
        ],
        "title": "PublicExportJobRequestSchemaOut",
        "type": "object"
      },
      "PublicExportJobSchemaOut": {
        "description": "Sanitized view of an export job. Infra fields (s3_key, crawler/ETL jobs) are never included.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "integration_id": {
            "description": "ID of the destination integration the export runs through.",
            "title": "Integration Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/PublicExportJobStatus",
            "description": "`pending`, `running`, `completed`, or `failed`."
          },
          "error": {
            "description": "Set only when `status` is `failed`.",
            "title": "Error",
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "started_at": {
            "title": "Started At",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "completed_at": {
            "title": "Completed At",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "status",
          "created_at"
        ],
        "title": "PublicExportJobSchemaOut",
        "type": "object"
      },
      "PublicExportJobStatus": {
        "description": "The four states a caller needs; the internal pipeline states collapse onto these.",
        "enum": [
          "pending",
          "running",
          "completed",
          "failed"
        ],
        "title": "PublicExportJobStatus",
        "type": "string"
      },
      "PublicExportJobSchemaIn": {
        "properties": {
          "integration_id": {
            "description": "Destination integration to export through. Optional when the organization has exactly one connected destination.",
            "title": "Integration Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "title": "PublicExportJobSchemaIn",
        "type": "object"
      },
      "PublicExportJobListFilterSchema": {
        "properties": {
          "status": {
            "description": "Filter by public status.",
            "title": "Status",
            "items": {
              "$ref": "#/components/schemas/PublicExportJobStatus"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "title": "PublicExportJobListFilterSchema",
        "type": "object"
      },
      "PagedPublicExportJobSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicExportJobSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicExportJobSchemaOut",
        "type": "object"
      },
      "PublicExchangeRateTableSchemaIn": {
        "properties": {
          "effective_date": {
            "description": "Single date to fetch rates for.",
            "title": "Effective Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "start_date": {
            "description": "Inclusive range start. Requires `end_date`.",
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "description": "Inclusive range end. Requires `start_date`.",
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "base_currency": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "transaction_currency": {
            "description": "Quote currencies to include.",
            "items": {
              "enum": [
                "AED",
                "AFN",
                "ALL",
                "AMD",
                "ANG",
                "AOA",
                "ARS",
                "AUD",
                "AWG",
                "AZN",
                "BAM",
                "BBD",
                "BDT",
                "BGN",
                "BHD",
                "BIF",
                "BMD",
                "BND",
                "BOB",
                "BRL",
                "BSD",
                "BTN",
                "BWP",
                "BYN",
                "BZD",
                "CAD",
                "CDF",
                "CHF",
                "CLF",
                "CLP",
                "CNY",
                "COP",
                "CRC",
                "CUP",
                "CVE",
                "CZK",
                "DJF",
                "DKK",
                "DOP",
                "DZD",
                "EGP",
                "ERN",
                "ETB",
                "EUR",
                "FJD",
                "FKP",
                "GBP",
                "GEL",
                "GHS",
                "GIP",
                "GMD",
                "GNF",
                "GTQ",
                "GYD",
                "HKD",
                "HNL",
                "HTG",
                "HUF",
                "IDR",
                "ILS",
                "INR",
                "IQD",
                "IRR",
                "ISK",
                "JMD",
                "JOD",
                "JPY",
                "KES",
                "KGS",
                "KHR",
                "KMF",
                "KPW",
                "KRW",
                "KWD",
                "KYD",
                "KZT",
                "LAK",
                "LBP",
                "LKR",
                "LRD",
                "LSL",
                "LYD",
                "MAD",
                "MDL",
                "MGA",
                "MKD",
                "MMK",
                "MNT",
                "MOP",
                "MRU",
                "MUR",
                "MVR",
                "MWK",
                "MXN",
                "MYR",
                "MZN",
                "NAD",
                "NGN",
                "NIO",
                "NOK",
                "NPR",
                "NZD",
                "OMR",
                "PAB",
                "PEN",
                "PGK",
                "PHP",
                "PKR",
                "PLN",
                "PYG",
                "QAR",
                "RON",
                "RSD",
                "RUB",
                "RWF",
                "SAR",
                "SBD",
                "SCR",
                "SDG",
                "SEK",
                "SGD",
                "SHP",
                "SLL",
                "SOS",
                "SRD",
                "STN",
                "SVC",
                "SYP",
                "SZL",
                "THB",
                "TJS",
                "TMT",
                "TND",
                "TOP",
                "TRY",
                "TTD",
                "TWD",
                "TZS",
                "UAH",
                "UGX",
                "USD",
                "UYU",
                "UZS",
                "VES",
                "VND",
                "VUV",
                "WST",
                "XAF",
                "XAG",
                "XAU",
                "XCD",
                "XDR",
                "XOF",
                "XPD",
                "XPF",
                "XPT",
                "YER",
                "ZAR",
                "ZMW",
                "ZWL"
              ],
              "title": "SystemCurrencies",
              "type": "string"
            },
            "title": "Transaction Currency",
            "type": "array"
          }
        },
        "required": [
          "base_currency",
          "transaction_currency"
        ],
        "title": "PublicExchangeRateTableSchemaIn",
        "type": "object"
      },
      "ExchangeRateSchemaOut": {
        "properties": {
          "base_currency": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "transaction_currency": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "provider": {
            "title": "Provider",
            "type": "string"
          },
          "method": {
            "$ref": "#/components/schemas/ExhcangeMethods"
          },
          "effective_date": {
            "format": "date",
            "title": "Effective Date",
            "type": "string"
          }
        },
        "required": [
          "base_currency",
          "transaction_currency",
          "exchange_rate",
          "provider",
          "method",
          "effective_date"
        ],
        "title": "ExchangeRateSchemaOut",
        "type": "object"
      },
      "ExhcangeMethods": {
        "enum": [
          "rate_provider",
          "inverse",
          "triangulation"
        ],
        "title": "ExhcangeMethods",
        "type": "string"
      },
      "PagedExchangeRateSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ExchangeRateSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedExchangeRateSchemaOut",
        "type": "object"
      },
      "PublicDepreciationBookListFilterSchema": {
        "properties": {
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicDepreciationBookListFilterSchema",
        "type": "object"
      },
      "DepreciationBookSchemaOut": {
        "description": "Output schema for depreciation book.",
        "properties": {
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "is_posting": {
            "title": "Is Posting",
            "type": "boolean"
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "id",
          "code",
          "name",
          "description",
          "is_active",
          "is_posting"
        ],
        "title": "DepreciationBookSchemaOut",
        "type": "object"
      },
      "PagedDepreciationBookSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/DepreciationBookSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedDepreciationBookSchemaOut",
        "type": "object"
      },
      "PublicPeriodLockListFilterSchema": {
        "properties": {
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "limit": {
            "default": 100,
            "description": "Number of records to return per page (capped at 100)",
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "offset": {
            "default": 0,
            "description": "Number of records to skip before starting to return results",
            "minimum": 0,
            "title": "Offset",
            "type": "integer"
          }
        },
        "title": "PublicPeriodLockListFilterSchema",
        "type": "object"
      },
      "PublicPeriodLockListSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicPeriodLockSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PublicPeriodLockListSchemaOut",
        "type": "object"
      },
      "PublicPeriodLockSchemaOut": {
        "properties": {
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "section": {
            "title": "Section",
            "type": [
              "string",
              "null"
            ]
          },
          "depreciation_book_id": {
            "title": "Depreciation Book Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "depreciation_book_code": {
            "title": "Depreciation Book Code",
            "type": [
              "string",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "format": "date",
            "title": "End Date",
            "type": "string"
          }
        },
        "required": [
          "company_id",
          "section",
          "depreciation_book_id",
          "depreciation_book_code",
          "start_date",
          "end_date"
        ],
        "title": "PublicPeriodLockSchemaOut",
        "type": "object"
      },
      "PublicIJEListFilterSchema": {
        "description": "Filter schema for the IJE list endpoint.",
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status_scope": {
            "title": "Approval Status Scope",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "amount_gte": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Amount Gte"
          },
          "amount_lte": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Amount Lte"
          }
        },
        "title": "PublicIJEListFilterSchema",
        "type": "object"
      },
      "PagedPublicIJESchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicIJESchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicIJESchemaOut",
        "type": "object"
      },
      "PublicIJECompanySchemaOut": {
        "description": "Compact company info derived from IJE transactions.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "PublicIJECompanySchemaOut",
        "type": "object"
      },
      "PublicIJEItemOut": {
        "description": "Output schema for a single IJE line item.",
        "properties": {
          "not_aging_eligible_reason": {
            "default": "",
            "description": "Audit text that excludes an accounts receivable or accounts payable line from aging.",
            "maxLength": 255,
            "title": "Not Aging Eligible Reason",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "debit": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Debit",
            "type": "string"
          },
          "credit": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Credit",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": [
              "string",
              "null"
            ]
          },
          "currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "eliminate": {
            "title": "Eliminate",
            "type": "boolean"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          }
        },
        "required": [
          "id",
          "company_id",
          "company_name",
          "account_number",
          "debit",
          "credit",
          "memo",
          "position",
          "eliminate",
          "exchange_rate"
        ],
        "title": "PublicIJEItemOut",
        "type": "object"
      },
      "PublicIJESchemaOut": {
        "description": "Full output schema for a single intercompany journal entry.",
        "properties": {
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicAttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "approval_status": {
            "title": "Approval Status",
            "type": [
              "string",
              "null"
            ]
          },
          "next_approvers": {
            "title": "Next Approvers",
            "items": {
              "$ref": "#/components/schemas/ApproverDictSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rejected_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RejectedBySchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "record_number": {
            "title": "Record Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "format": "date",
            "title": "Transaction Date",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "reference_number": {
            "title": "Reference Number",
            "type": [
              "string",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "title": "Exchange Rate",
            "type": "string"
          },
          "elimination_exchange_rate": {
            "title": "Elimination Exchange Rate",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicIJEItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "companies": {
            "items": {
              "$ref": "#/components/schemas/PublicIJECompanySchemaOut"
            },
            "title": "Companies",
            "type": "array"
          },
          "company_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Company Ids",
            "type": "array"
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "record_number",
          "date",
          "transaction_date",
          "memo",
          "currency_iso_4217_code",
          "exchange_rate",
          "record_status",
          "items",
          "companies",
          "company_ids"
        ],
        "title": "PublicIJESchemaOut",
        "type": "object"
      },
      "PublicIJEItemIn": {
        "description": "Input schema for a single IJE line item.",
        "properties": {
          "not_aging_eligible_reason": {
            "default": "",
            "description": "Audit text that excludes an accounts receivable or accounts payable line from aging.",
            "maxLength": 255,
            "title": "Not Aging Eligible Reason",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "account_number": {
            "title": "Account Number",
            "type": "integer"
          },
          "debit": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Debit"
          },
          "credit": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
                "type": "string"
              }
            ],
            "title": "Credit"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "eliminate": {
            "default": true,
            "title": "Eliminate",
            "type": "boolean"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exchange Rate"
          }
        },
        "required": [
          "company_id",
          "account_number",
          "debit",
          "credit",
          "memo",
          "position"
        ],
        "title": "PublicIJEItemIn",
        "type": "object"
      },
      "PublicIJESchemaCreateIn": {
        "description": "Input schema for creating / updating an intercompany journal entry.",
        "properties": {
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "transaction_date": {
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "reference_number": {
            "title": "Reference Number",
            "maxLength": 128,
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "$ref": "#/components/schemas/SystemCurrencies"
          },
          "exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              }
            ],
            "title": "Exchange Rate"
          },
          "elimination_exchange_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,16}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Elimination Exchange Rate"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicIJEItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          }
        },
        "required": [
          "date",
          "currency_iso_4217_code",
          "exchange_rate",
          "items"
        ],
        "title": "PublicIJESchemaCreateIn",
        "type": "object"
      },
      "PublicVatRateFilterSchema": {
        "properties": {
          "country_code": {
            "title": "Country Code",
            "items": {
              "$ref": "#/components/schemas/VatCountries"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "rate_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VatRateType"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VatTaxType"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "title": "PublicVatRateFilterSchema",
        "type": "object"
      },
      "VatCountries": {
        "description": "Countries with a VAT system. Used to restrict API inputs to valid VAT jurisdictions.",
        "enum": [
          "AE",
          "CH",
          "CW",
          "GB",
          "KR",
          "NO",
          "TH",
          "TZ",
          "MX",
          "ZA",
          "FR",
          "DE",
          "ES",
          "IT",
          "NL",
          "BE",
          "IE",
          "PT",
          "SE",
          "AT",
          "PL",
          "DK",
          "FI",
          "GR",
          "CZ",
          "RO",
          "HU",
          "BG",
          "HR",
          "SK",
          "SI",
          "LT",
          "LV",
          "EE",
          "CY",
          "MT",
          "LU"
        ],
        "title": "VatCountries",
        "type": "string"
      },
      "VatRateType": {
        "enum": [
          "STANDARD",
          "REDUCED",
          "SUPER_REDUCED",
          "PARKING",
          "ZERO",
          "EXEMPT",
          "OUT_OF_SCOPE"
        ],
        "title": "VatRateType",
        "type": "string"
      },
      "VatTaxType": {
        "enum": [
          "INPUT_OUTPUT",
          "ZERO_RATED",
          "EXEMPT",
          "REVERSE_CHARGE",
          "OUT_OF_SCOPE"
        ],
        "title": "VatTaxType",
        "type": "string"
      },
      "PagedPublicVatRateSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicVatRateSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicVatRateSchemaOut",
        "type": "object"
      },
      "PublicVatRateSchemaOut": {
        "description": "Output schema for VAT rate.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "country_code": {
            "title": "Country Code",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Rate",
            "type": "string"
          },
          "rate_type": {
            "$ref": "#/components/schemas/VatRateType"
          },
          "tax_type": {
            "$ref": "#/components/schemas/VatTaxType"
          },
          "valid_from": {
            "format": "date",
            "title": "Valid From",
            "type": "string"
          },
          "valid_to": {
            "title": "Valid To",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "is_system": {
            "title": "Is System",
            "type": "boolean"
          },
          "description": {
            "title": "Description",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_asset_account_id": {
            "title": "Tax Asset Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "tax_liability_account_id": {
            "title": "Tax Liability Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "is_non_deductible": {
            "default": false,
            "title": "Is Non Deductible",
            "type": "boolean"
          },
          "deductible": {
            "title": "Deductible",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "non_deductible_cost_account_id": {
            "title": "Non Deductible Cost Account Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "country_code",
          "name",
          "rate",
          "rate_type",
          "tax_type",
          "valid_from",
          "valid_to",
          "is_active",
          "is_system",
          "description"
        ],
        "title": "PublicVatRateSchemaOut",
        "type": "object"
      },
      "GstTreatmentType": {
        "enum": [
          "STANDARD",
          "ZERO_RATED",
          "EXEMPT",
          "IMPORT_GST",
          "REVERSE_CHARGE",
          "SELF_ASSESSED",
          "OUT_OF_SCOPE"
        ],
        "title": "GstTreatmentType",
        "type": "string"
      },
      "PublicGstTaxRateFilterSchema": {
        "properties": {
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "country_code": {
            "title": "Country Code",
            "items": {
              "$ref": "#/components/schemas/GstCountries"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "tax_treatment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GstTreatmentType"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "title": "PublicGstTaxRateFilterSchema",
        "type": "object"
      },
      "PagedPublicGstTaxRateSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicGstTaxRateSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicGstTaxRateSchemaOut",
        "type": "object"
      },
      "PublicGstTaxRateComponentSchemaOut": {
        "description": "Output schema for a GST tax rate component.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "component_type": {
            "$ref": "#/components/schemas/GstComponentType"
          },
          "rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Rate",
            "type": "string"
          },
          "region": {
            "title": "Region",
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "title": "Position",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "component_type",
          "rate",
          "region",
          "position"
        ],
        "title": "PublicGstTaxRateComponentSchemaOut",
        "type": "object"
      },
      "PublicGstTaxRateSchemaOut": {
        "description": "Output schema for GST tax rate.",
        "properties": {
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "country_code": {
            "title": "Country Code",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Rate",
            "type": "string"
          },
          "tax_treatment": {
            "$ref": "#/components/schemas/GstTreatmentType"
          },
          "supply_category": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GstSupplyCategory"
              },
              {
                "type": "null"
              }
            ]
          },
          "region": {
            "title": "Region",
            "type": [
              "string",
              "null"
            ]
          },
          "valid_from": {
            "format": "date",
            "title": "Valid From",
            "type": "string"
          },
          "valid_to": {
            "title": "Valid To",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "is_system": {
            "title": "Is System",
            "type": "boolean"
          },
          "description": {
            "title": "Description",
            "type": [
              "string",
              "null"
            ]
          },
          "components": {
            "items": {
              "$ref": "#/components/schemas/PublicGstTaxRateComponentSchemaOut"
            },
            "title": "Components",
            "type": "array"
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "id",
          "country_code",
          "name",
          "rate",
          "tax_treatment",
          "valid_from",
          "valid_to",
          "is_active",
          "is_system",
          "description",
          "components"
        ],
        "title": "PublicGstTaxRateSchemaOut",
        "type": "object"
      },
      "PublicProductTaxCodeListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "title": "Description",
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "title": "Source",
            "items": {
              "$ref": "#/components/schemas/Sources"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          },
          "is_global": {
            "title": "Is Global",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "title": "PublicProductTaxCodeListFilterSchema",
        "type": "object"
      },
      "Sources": {
        "enum": [
          "INTERNAL",
          "AVALARA",
          "NUMERAL",
          "KINTSUGI",
          "ANROK"
        ],
        "title": "Sources",
        "type": "string"
      },
      "PagedPublicProductTaxCodeSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicProductTaxCodeSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicProductTaxCodeSchemaOut",
        "type": "object"
      },
      "PublicProductTaxCodeSchemaOut": {
        "properties": {
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/Sources"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "is_global": {
            "title": "Is Global",
            "type": "boolean"
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "id",
          "code",
          "description",
          "source",
          "is_active",
          "is_global"
        ],
        "title": "PublicProductTaxCodeSchemaOut",
        "type": "object"
      },
      "PublicProductTaxCodeSchemaCreateIn": {
        "properties": {
          "code": {
            "minLength": 1,
            "title": "Code",
            "type": "string"
          },
          "description": {
            "minLength": 1,
            "title": "Description",
            "type": "string"
          },
          "source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sources"
              }
            ],
            "default": "AVALARA"
          }
        },
        "required": [
          "code",
          "description"
        ],
        "title": "PublicProductTaxCodeSchemaCreateIn",
        "type": "object"
      },
      "PublicProductTaxCodeSchemaUpdateIn": {
        "properties": {
          "code": {
            "title": "Code",
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "title": "Description",
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "title": "PublicProductTaxCodeSchemaUpdateIn",
        "type": "object"
      },
      "GstAvailableRateOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "tax_code": {
            "title": "Tax Code",
            "type": "string"
          },
          "country_code": {
            "$ref": "#/components/schemas/GstCountries"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "rate": {
            "examples": [
              "0.180000"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Rate",
            "type": "string"
          },
          "tax_treatment": {
            "$ref": "#/components/schemas/GstTreatmentType"
          },
          "supply_category": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GstSupplyCategory"
              },
              {
                "type": "null"
              }
            ]
          },
          "region": {
            "title": "Region",
            "type": [
              "string",
              "null"
            ]
          },
          "valid_from": {
            "format": "date",
            "title": "Valid From",
            "type": "string"
          },
          "valid_to": {
            "title": "Valid To",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "is_system": {
            "title": "Is System",
            "type": "boolean"
          },
          "description": {
            "title": "Description",
            "type": [
              "string",
              "null"
            ]
          },
          "components": {
            "items": {
              "$ref": "#/components/schemas/GstTaxRateComponentSchemaOut"
            },
            "title": "Components",
            "type": "array"
          },
          "post_to_gl": {
            "description": "Projected GL posting accounts and their roles. Null when no projection is available.",
            "title": "Post To Gl",
            "items": {
              "$ref": "#/components/schemas/TaxGlAccountSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "tax_code",
          "country_code",
          "name",
          "rate",
          "tax_treatment",
          "valid_from",
          "valid_to",
          "is_active",
          "is_system",
          "description",
          "components"
        ],
        "title": "GstAvailableRateOut",
        "type": "object"
      },
      "GstDataOut": {
        "properties": {
          "is_gst_applicable": {
            "title": "Is Gst Applicable",
            "type": "boolean"
          },
          "gst_country": {
            "title": "Gst Country",
            "type": "string"
          },
          "company_gst_number": {
            "title": "Company Gst Number",
            "type": [
              "string",
              "null"
            ]
          },
          "counterparty_gst_number": {
            "title": "Counterparty Gst Number",
            "type": [
              "string",
              "null"
            ]
          },
          "company_pst_number": {
            "description": "Canada (BC/SK/MB/QC): company PST or QST registration for place_of_supply; null elsewhere or HST-only provinces.",
            "title": "Company Pst Number",
            "type": [
              "string",
              "null"
            ]
          },
          "counterparty_pst_number": {
            "description": "Canada: counterparty PST or QST for place_of_supply when applicable; null otherwise.",
            "title": "Counterparty Pst Number",
            "type": [
              "string",
              "null"
            ]
          },
          "place_of_supply": {
            "title": "Place Of Supply",
            "type": [
              "string",
              "null"
            ]
          },
          "gst_supply_category": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GstSupplyCategory"
              },
              {
                "type": "null"
              }
            ],
            "description": "India only (today): INTRA_STATE (CGST+SGST) vs INTER_STATE (IGST) from seller vs buyer state codes. Null for AU/NZ/SG/CA, and for India when the seller state cannot be resolved."
          },
          "rate_selection": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRateSelection"
              },
              {
                "type": "null"
              }
            ],
            "description": "Reserved for Provider calculated fixed-rate GST"
          },
          "available_rates": {
            "items": {
              "$ref": "#/components/schemas/GstAvailableRateOut"
            },
            "title": "Available Rates",
            "type": "array"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/GstItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "total_tax_amount": {
            "title": "Total Tax Amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "total_with_tax": {
            "title": "Total With Tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ],
            "description": "Snapshot-shape of all relevant registration numbers for both parties."
          },
          "calculation_source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxCalculationSource"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "title": "Tax Metadata",
            "additionalProperties": true,
            "type": [
              "object",
              "null"
            ]
          }
        },
        "required": [
          "is_gst_applicable",
          "gst_country",
          "company_gst_number",
          "counterparty_gst_number",
          "place_of_supply",
          "available_rates",
          "items"
        ],
        "title": "GstDataOut",
        "type": "object"
      },
      "GstItemOut": {
        "properties": {
          "item_id": {
            "title": "Item Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "product_tax_code": {
            "title": "Product Tax Code",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_code": {
            "title": "Tax Code",
            "type": [
              "string",
              "null"
            ]
          },
          "provider_tax_code": {
            "description": "Tax rate code returned by an external provider.",
            "title": "Provider Tax Code",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_rate": {
            "title": "Tax Rate",
            "examples": [
              "0.2000"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_amount": {
            "title": "Tax Amount",
            "examples": [
              "20"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "amount_with_tax": {
            "title": "Amount With Tax",
            "examples": [
              "120"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "is_taxable": {
            "title": "Is Taxable",
            "type": [
              "boolean",
              "null"
            ]
          },
          "tax_exempt_amount": {
            "title": "Tax Exempt Amount",
            "examples": [
              "0"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_metadata": {
            "title": "Tax Metadata",
            "additionalProperties": true,
            "type": [
              "object",
              "null"
            ]
          },
          "post_to_gl": {
            "description": "Projected GL posting accounts and their roles. Null when no projection is available.",
            "title": "Post To Gl",
            "items": {
              "$ref": "#/components/schemas/TaxGlAccountSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "selected_gst_tax_rate_id": {
            "title": "Selected Gst Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "available_rates_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Available Rates Ids",
            "type": "array"
          },
          "gst_tax_components": {
            "title": "Gst Tax Components",
            "items": {
              "$ref": "#/components/schemas/TaxComponentSchema"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "product_tax_code",
          "tax_code",
          "tax_rate",
          "tax_amount"
        ],
        "title": "GstItemOut",
        "type": "object"
      },
      "GstTaxRateComponentSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "component_type": {
            "$ref": "#/components/schemas/GstComponentType"
          },
          "rate": {
            "examples": [
              "0.090000"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Rate",
            "type": "string"
          },
          "region": {
            "title": "Region",
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "title": "Position",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "component_type",
          "rate",
          "region",
          "position"
        ],
        "title": "GstTaxRateComponentSchemaOut",
        "type": "object"
      },
      "NoneTaxDataOut": {
        "properties": {
          "reason": {
            "title": "Reason",
            "type": "string"
          }
        },
        "required": [
          "reason"
        ],
        "title": "NoneTaxDataOut",
        "type": "object"
      },
      "SalesTaxDataOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/TaxItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "total_tax_amount": {
            "examples": [
              "20"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Total Tax Amount",
            "type": "string"
          },
          "total_with_tax": {
            "examples": [
              "120"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Total With Tax",
            "type": "string"
          },
          "tax_applicable": {
            "title": "Tax Applicable",
            "type": "boolean"
          },
          "nexus_detected": {
            "title": "Nexus Detected",
            "type": "boolean"
          },
          "destination": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxLocationIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "calculation_source": {
            "title": "Calculation Source",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_metadata": {
            "title": "Tax Metadata",
            "additionalProperties": true,
            "type": [
              "object",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "total_tax_amount",
          "total_with_tax",
          "tax_applicable",
          "nexus_detected",
          "destination"
        ],
        "title": "SalesTaxDataOut",
        "type": "object"
      },
      "TaxCalculationSource": {
        "enum": [
          "avalara",
          "anrok",
          "kintsugi",
          "numeral",
          "dualentry"
        ],
        "title": "TaxCalculationSource",
        "type": "string"
      },
      "TaxGlAccountRole": {
        "enum": [
          "asset",
          "liability",
          "non_deductible_cost"
        ],
        "title": "TaxGlAccountRole",
        "type": "string"
      },
      "TaxGlAccountSchemaOut": {
        "properties": {
          "account_id": {
            "title": "Account Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "role": {
            "$ref": "#/components/schemas/TaxGlAccountRole"
          }
        },
        "required": [
          "account_id",
          "name",
          "number",
          "role"
        ],
        "title": "TaxGlAccountSchemaOut",
        "type": "object"
      },
      "TaxItemOut": {
        "properties": {
          "item_id": {
            "title": "Item Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "product_tax_code": {
            "title": "Product Tax Code",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_code": {
            "title": "Tax Code",
            "type": [
              "string",
              "null"
            ]
          },
          "provider_tax_code": {
            "description": "Tax rate code returned by an external provider.",
            "title": "Provider Tax Code",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_rate": {
            "title": "Tax Rate",
            "examples": [
              "0.2000"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_amount": {
            "title": "Tax Amount",
            "examples": [
              "20"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "amount_with_tax": {
            "examples": [
              "120"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount With Tax",
            "type": "string"
          },
          "is_taxable": {
            "title": "Is Taxable",
            "type": [
              "boolean",
              "null"
            ]
          },
          "tax_exempt_amount": {
            "title": "Tax Exempt Amount",
            "examples": [
              "0"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_metadata": {
            "title": "Tax Metadata",
            "additionalProperties": true,
            "type": [
              "object",
              "null"
            ]
          },
          "post_to_gl": {
            "description": "Projected GL posting accounts and their roles. Null when no projection is available.",
            "title": "Post To Gl",
            "items": {
              "$ref": "#/components/schemas/TaxGlAccountSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "product_tax_code",
          "tax_code",
          "tax_rate",
          "tax_amount",
          "amount_with_tax"
        ],
        "title": "TaxItemOut",
        "type": "object"
      },
      "TaxLocationIn": {
        "properties": {
          "country": {
            "$ref": "#/components/schemas/SystemCountries",
            "description": "Country code",
            "example": "US"
          },
          "region": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UsRegions"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "State/region code",
            "example": "CA",
            "title": "Region"
          },
          "postal_code": {
            "description": "Postal/ZIP code",
            "example": "94105",
            "title": "Postal Code",
            "type": "string"
          },
          "city": {
            "description": "City name",
            "example": "San Francisco",
            "title": "City",
            "type": [
              "string",
              "null"
            ]
          },
          "line1": {
            "description": "Street address line 1",
            "example": "123 Main St",
            "title": "Line1",
            "type": [
              "string",
              "null"
            ]
          },
          "line2": {
            "description": "Street address line 2",
            "example": "Suite 100",
            "title": "Line2",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "country",
          "postal_code"
        ],
        "title": "TaxLocationIn",
        "type": "object"
      },
      "TaxRateSelection": {
        "enum": [
          "SELECTABLE",
          "FIXED"
        ],
        "title": "TaxRateSelection",
        "type": "string"
      },
      "TaxResultV2Out": {
        "properties": {
          "type": {
            "$ref": "#/components/schemas/TaxResultType"
          },
          "data": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesTaxDataOut"
              },
              {
                "$ref": "#/components/schemas/VatDataOut"
              },
              {
                "$ref": "#/components/schemas/GstDataOut"
              },
              {
                "$ref": "#/components/schemas/NoneTaxDataOut"
              }
            ],
            "title": "Data"
          }
        },
        "required": [
          "type",
          "data"
        ],
        "title": "TaxResultV2Out",
        "type": "object"
      },
      "UsRegions": {
        "enum": [
          "AL",
          "AK",
          "AZ",
          "AR",
          "CA",
          "CO",
          "CT",
          "DE",
          "FL",
          "GA",
          "HI",
          "ID",
          "IL",
          "IN",
          "IA",
          "KS",
          "KY",
          "LA",
          "ME",
          "MD",
          "MA",
          "MI",
          "MN",
          "MS",
          "MO",
          "MT",
          "NE",
          "NV",
          "NH",
          "NJ",
          "NM",
          "NY",
          "NC",
          "ND",
          "OH",
          "OK",
          "OR",
          "PA",
          "RI",
          "SC",
          "SD",
          "TN",
          "TX",
          "UT",
          "VT",
          "VA",
          "WA",
          "WV",
          "WI",
          "WY",
          "DC",
          "AS",
          "GU",
          "MP",
          "PR",
          "VI",
          "AE",
          "AP",
          "AA"
        ],
        "title": "UsRegions",
        "type": "string"
      },
      "VatAvailableRateOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "tax_code": {
            "title": "Tax Code",
            "type": "string"
          },
          "country_code": {
            "$ref": "#/components/schemas/VatCountries"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "rate": {
            "examples": [
              "0.2000"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Rate",
            "type": "string"
          },
          "rate_type": {
            "title": "Rate Type",
            "type": "string"
          },
          "tax_type": {
            "title": "Tax Type",
            "type": "string"
          },
          "valid_from": {
            "format": "date",
            "title": "Valid From",
            "type": "string"
          },
          "valid_to": {
            "title": "Valid To",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "is_system": {
            "title": "Is System",
            "type": "boolean"
          },
          "description": {
            "title": "Description",
            "type": [
              "string",
              "null"
            ]
          },
          "post_to_gl": {
            "description": "Projected GL posting accounts and their roles. Null when no projection is available.",
            "title": "Post To Gl",
            "items": {
              "$ref": "#/components/schemas/TaxGlAccountSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "tax_code",
          "country_code",
          "name",
          "rate",
          "rate_type",
          "tax_type",
          "valid_from",
          "valid_to",
          "is_active",
          "is_system",
          "description"
        ],
        "title": "VatAvailableRateOut",
        "type": "object"
      },
      "VatDataOut": {
        "properties": {
          "is_vat_applicable": {
            "title": "Is Vat Applicable",
            "type": "boolean"
          },
          "vat_country": {
            "title": "Vat Country",
            "type": [
              "string",
              "null"
            ]
          },
          "company_vat_number": {
            "title": "Company Vat Number",
            "type": [
              "string",
              "null"
            ]
          },
          "counterparty_vat_number": {
            "title": "Counterparty Vat Number",
            "type": [
              "string",
              "null"
            ]
          },
          "rate_selection": {
            "$ref": "#/components/schemas/TaxRateSelection"
          },
          "available_rates": {
            "items": {
              "$ref": "#/components/schemas/VatAvailableRateOut"
            },
            "title": "Available Rates",
            "type": "array"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/VatItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "total_tax_amount": {
            "title": "Total Tax Amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "total_with_tax": {
            "title": "Total With Tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_registration_numbers": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxRegistrationNumbersSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "calculation_source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxCalculationSource"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_metadata": {
            "title": "Tax Metadata",
            "additionalProperties": true,
            "type": [
              "object",
              "null"
            ]
          }
        },
        "required": [
          "is_vat_applicable",
          "vat_country",
          "company_vat_number",
          "counterparty_vat_number",
          "rate_selection",
          "available_rates",
          "items"
        ],
        "title": "VatDataOut",
        "type": "object"
      },
      "VatItemOut": {
        "properties": {
          "item_id": {
            "title": "Item Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "product_tax_code": {
            "title": "Product Tax Code",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_code": {
            "title": "Tax Code",
            "type": [
              "string",
              "null"
            ]
          },
          "provider_tax_code": {
            "description": "Tax rate code returned by an external provider.",
            "title": "Provider Tax Code",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_rate": {
            "title": "Tax Rate",
            "examples": [
              "0.2000"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_amount": {
            "title": "Tax Amount",
            "examples": [
              "20"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "amount_with_tax": {
            "title": "Amount With Tax",
            "examples": [
              "120"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "is_taxable": {
            "title": "Is Taxable",
            "type": [
              "boolean",
              "null"
            ]
          },
          "tax_exempt_amount": {
            "title": "Tax Exempt Amount",
            "examples": [
              "0"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "tax_metadata": {
            "title": "Tax Metadata",
            "additionalProperties": true,
            "type": [
              "object",
              "null"
            ]
          },
          "post_to_gl": {
            "description": "Projected GL posting accounts and their roles. Null when no projection is available.",
            "title": "Post To Gl",
            "items": {
              "$ref": "#/components/schemas/TaxGlAccountSchemaOut"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "selected_vat_rate_id": {
            "title": "Selected Vat Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "available_rates_ids": {
            "items": {
              "type": "integer"
            },
            "title": "Available Rates Ids",
            "type": "array"
          }
        },
        "required": [
          "product_tax_code",
          "tax_code",
          "tax_rate",
          "tax_amount"
        ],
        "title": "VatItemOut",
        "type": "object"
      },
      "TaxErrorOut": {
        "properties": {
          "success": {
            "default": false,
            "title": "Success",
            "type": "boolean"
          },
          "errors": {
            "additionalProperties": {
              "anyOf": [
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "string"
                }
              ]
            },
            "title": "Errors",
            "type": "object"
          }
        },
        "required": [
          "errors"
        ],
        "title": "TaxErrorOut",
        "type": "object"
      },
      "CreditSourceIn": {
        "properties": {
          "record_type": {
            "$ref": "#/components/schemas/TaxableRecordType",
            "description": "Linked source record type (invoice/cash_sale for customer credits; bill/direct_expense for vendor credits).",
            "example": "invoice"
          },
          "record_id": {
            "description": "Linked source record ID.",
            "example": 1,
            "title": "Record Id",
            "type": "integer"
          }
        },
        "required": [
          "record_type",
          "record_id"
        ],
        "title": "CreditSourceIn",
        "type": "object"
      },
      "TaxCalculationV2In": {
        "properties": {
          "company_id": {
            "description": "Company ID",
            "example": 1,
            "title": "Company Id",
            "type": "integer"
          },
          "customer_id": {
            "description": "Customer ID (money-in records)",
            "example": 1,
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "description": "Vendor ID (money-out records)",
            "example": null,
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxableRecordType"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional taxable record type. Customer/vendor credits use ReturnOrder estimates.",
            "example": "invoice"
          },
          "credit_source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CreditSourceIn"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional linked source for customer/vendor credits. Used to pin AvaTax taxOverride.taxDate to the original sale/purchase.",
            "example": {
              "record_id": 1,
              "record_type": "invoice"
            }
          },
          "transaction_buyer_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxLocationIn"
              },
              {
                "type": "null"
              }
            ],
            "description": "Buyer address on the transaction \u2014 required for sales tax, ignored for VAT",
            "example": {
              "city": "San Francisco",
              "country": "US",
              "line1": "123 Main St",
              "line2": "Suite 100",
              "postal_code": "94105",
              "region": "CA"
            }
          },
          "transaction_ship_from_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxLocationIn"
              },
              {
                "type": "null"
              }
            ],
            "description": "Vendor shipment origin for money-out records. Overrides the vendor default address in tax preview."
          },
          "transaction_ship_to_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaxLocationIn"
              },
              {
                "type": "null"
              }
            ],
            "description": "Company delivery location for money-out records. Overrides the company default address in tax preview."
          },
          "transaction_date": {
            "description": "Transaction date \u2014 required for sales tax",
            "example": "2025-08-29",
            "title": "Transaction Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "supply_date": {
            "description": "Tax point / date of supply \u2014 filters VAT and GST rates by valid_from / valid_to",
            "example": "2025-08-29",
            "title": "Supply Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "description": "List of items to calculate tax for",
            "example": [
              {
                "discount_type": "PERCENTAGE",
                "discount_value": "10.00",
                "item_id": -1,
                "quantity": "1.000000",
                "unit_price": "100.000000"
              },
              {
                "item_id": -2,
                "quantity": "2.000000",
                "record_level_discount_amount": "5.00",
                "selected_vat_rate_id": 1,
                "unit_price": "50.000000"
              }
            ],
            "items": {
              "$ref": "#/components/schemas/TaxedItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "currency_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ],
            "description": "Currency code (ISO 4217) \u2014 required for sales tax",
            "example": "USD"
          }
        },
        "required": [
          "company_id"
        ],
        "title": "TaxCalculationV2In",
        "type": "object"
      },
      "TaxableRecordType": {
        "enum": [
          "invoice",
          "cash_sale",
          "customer_credit",
          "sales_order",
          "bill",
          "direct_expense",
          "vendor_credit",
          "purchase_order"
        ],
        "title": "TaxableRecordType",
        "type": "string"
      },
      "TaxedItemIn": {
        "properties": {
          "item_id": {
            "description": "Item ID (null for expense lines)",
            "example": 1,
            "title": "Item Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "quantity": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              }
            ],
            "description": "Quantity of the item",
            "example": "1.000000",
            "title": "Quantity"
          },
          "unit_price": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              }
            ],
            "description": "Unit price of the item",
            "example": "100.000000",
            "title": "Unit Price"
          },
          "discount_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DiscountType"
              },
              {
                "type": "null"
              }
            ],
            "description": "Type of discount (PERCENTAGE or FIXED)",
            "example": "PERCENTAGE"
          },
          "discount_value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Discount value (10 for 10% or 10.00 for $10)",
            "example": "10.00",
            "title": "Discount Value"
          },
          "selected_vat_rate_id": {
            "description": "Selected VAT rate ID (from available_rates) \u2014 used in VAT calculations",
            "title": "Selected Vat Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "selected_gst_tax_rate_id": {
            "description": "Selected GST tax rate ID (from available_rates) \u2014 used in GST calculations",
            "title": "Selected Gst Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_level_discount_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Record-level discount amount allocated to this line",
            "example": "5.00",
            "title": "Record Level Discount Amount"
          }
        },
        "required": [
          "quantity",
          "unit_price"
        ],
        "title": "TaxedItemIn",
        "type": "object"
      },
      "SuggestionType": {
        "enum": [
          "match",
          "create"
        ],
        "title": "SuggestionType",
        "type": "string"
      },
      "PagedPublicBankMatchSuggestionSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicBankMatchSuggestionSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicBankMatchSuggestionSchemaOut",
        "type": "object"
      },
      "PublicBankMatchSuggestionSchemaOut": {
        "description": "A single bank-match suggestion.\n\nPairs a bank-feed row (``financial_transaction_id``) with a DualEntry\naccounting transaction (``transaction_id``). ``suggestion_type`` tells you\nwhether we're proposing to match against something you already have on\nfile, or to draft a new transaction.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "financial_transaction_id": {
            "title": "Financial Transaction Id",
            "type": "integer"
          },
          "transaction_id": {
            "title": "Transaction Id",
            "type": "integer"
          },
          "suggestion_type": {
            "$ref": "#/components/schemas/SuggestionType"
          },
          "confidence_score": {
            "description": "How confident the AI is, from 0.00 to 100.00. Null for deterministic (rule-based) matches where confidence doesn't apply.",
            "title": "Confidence Score",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "financial_transaction_id",
          "transaction_id",
          "suggestion_type"
        ],
        "title": "PublicBankMatchSuggestionSchemaOut",
        "type": "object"
      },
      "PublicBankMatchStatusCountsSchemaOut": {
        "description": "How many bank-feed rows are in each pipeline stage.\n\nPoll this after calling ``/populate/`` to see when the pipeline has\nfinished. The three \"still working\" stages are ``unprocessed``,\n``awaiting_ai``, and ``ai_in_progress``. When all three hit zero, you're\ndone and the terminal stages hold the results.",
        "properties": {
          "unprocessed": {
            "title": "Unprocessed",
            "type": "integer"
          },
          "awaiting_setup": {
            "title": "Awaiting Setup",
            "type": "integer"
          },
          "deterministic_suggested": {
            "title": "Deterministic Suggested",
            "type": "integer"
          },
          "awaiting_ai": {
            "title": "Awaiting Ai",
            "type": "integer"
          },
          "ai_in_progress": {
            "title": "Ai In Progress",
            "type": "integer"
          },
          "ai_suggested": {
            "title": "Ai Suggested",
            "type": "integer"
          },
          "ai_no_match": {
            "title": "Ai No Match",
            "type": "integer"
          },
          "no_match": {
            "title": "No Match",
            "type": "integer"
          },
          "excluded": {
            "title": "Excluded",
            "type": "integer"
          },
          "matched": {
            "title": "Matched",
            "type": "integer"
          }
        },
        "required": [
          "unprocessed",
          "awaiting_setup",
          "deterministic_suggested",
          "awaiting_ai",
          "ai_in_progress",
          "ai_suggested",
          "ai_no_match",
          "no_match",
          "excluded",
          "matched"
        ],
        "title": "PublicBankMatchStatusCountsSchemaOut",
        "type": "object"
      },
      "MatchingStatus": {
        "enum": [
          "unprocessed",
          "awaiting_setup",
          "deterministic_suggested",
          "awaiting_ai",
          "ai_in_progress",
          "ai_suggested",
          "ai_no_match",
          "no_match",
          "excluded",
          "matched"
        ],
        "title": "MatchingStatus",
        "type": "string"
      },
      "PublicBankTransactionFilterSchema": {
        "properties": {
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "financial_account_id": {
            "description": "Limit to a single bank/credit-card account.",
            "title": "Financial Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "matching_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MatchingStatus"
              },
              {
                "type": "null"
              }
            ],
            "description": "Pipeline stage filter, e.g. `unprocessed`, `ai_suggested`, `matched`, `no_match`, `excluded`."
          },
          "date_from": {
            "description": "Inclusive lower bound on `date`.",
            "title": "Date From",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "date_to": {
            "description": "Inclusive upper bound on `date`.",
            "title": "Date To",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "is_posted": {
            "description": "`true` for posted-only, `false` for pending-only, omit for both.",
            "title": "Is Posted",
            "type": [
              "boolean",
              "null"
            ]
          },
          "include_expired": {
            "default": false,
            "description": "By default expired rows are hidden; pass `true` to see them.",
            "title": "Include Expired",
            "type": "boolean"
          }
        },
        "title": "PublicBankTransactionFilterSchema",
        "type": "object"
      },
      "BankTransactionSource": {
        "enum": [
          "pdf_upload",
          "csv_upload",
          "manual_upload",
          "bai_upload",
          "meld",
          "plaid",
          "waycore",
          "saltedge",
          "dualentry_banking",
          "yapily",
          "finicity",
          "customer_api",
          "sftp",
          "moss",
          "cashpro"
        ],
        "title": "BankTransactionSource",
        "type": "string"
      },
      "PagedPublicBankTransactionSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicBankTransactionSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicBankTransactionSchemaOut",
        "type": "object"
      },
      "PublicBankTransactionSchemaOut": {
        "description": "A single bank-feed row (one debit or credit on a connected bank/credit-card account).\n\nUse this to drive matching externally: pick a row, decide which DualEntry\ntransaction it pairs with, then `POST /matches/`.",
        "properties": {
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "financial_account_id": {
            "title": "Financial Account Id",
            "type": "integer"
          },
          "financial_account_name": {
            "description": "Human-readable name of the bank/credit-card account this row belongs to.",
            "title": "Financial Account Name",
            "type": [
              "string",
              "null"
            ]
          },
          "date": {
            "format": "date-time",
            "title": "Date",
            "type": "string"
          },
          "posted_at": {
            "title": "Posted At",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "amount": {
            "description": "Signed amount. Positive = debit (money in), negative = credit (money out).",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Amount",
            "type": "string"
          },
          "debit_amount": {
            "description": "`max(amount, 0)`. Zero when this row is a credit.",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Debit Amount",
            "type": "string"
          },
          "credit_amount": {
            "description": "`abs(min(amount, 0))`. Zero when this row is a debit.",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Credit Amount",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "payee": {
            "description": "Merchant or counterparty, when the bank reports one.",
            "title": "Payee",
            "type": [
              "string",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "title": "Currency Iso 4217 Code",
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "$ref": "#/components/schemas/BankTransactionSource",
            "description": "Where the row came from (Plaid, Meld, CSV upload, etc.)."
          },
          "is_posted": {
            "title": "Is Posted",
            "type": "boolean"
          },
          "is_expired": {
            "title": "Is Expired",
            "type": "boolean"
          },
          "matching_status": {
            "$ref": "#/components/schemas/MatchingStatus",
            "description": "Where the row sits in the bank-match pipeline. `matched` means a DualEntry transaction is paired to it."
          },
          "matched_transaction_ids": {
            "description": "DualEntry transaction IDs currently matched to this row. Empty unless `matching_status == 'matched'`.",
            "items": {
              "type": "integer"
            },
            "title": "Matched Transaction Ids",
            "type": "array"
          },
          "matched_entry_ids": {
            "description": "DualEntry entry IDs currently matched to this row (used for partial matches like journal entries).",
            "items": {
              "type": "integer"
            },
            "title": "Matched Entry Ids",
            "type": "array"
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "id",
          "financial_account_id",
          "date",
          "posted_at",
          "amount",
          "debit_amount",
          "credit_amount",
          "description",
          "currency_iso_4217_code",
          "source",
          "is_posted",
          "is_expired",
          "matching_status"
        ],
        "title": "PublicBankTransactionSchemaOut",
        "type": "object"
      },
      "PublicBankMatchSuccessSchema": {
        "properties": {
          "success": {
            "const": true,
            "default": true,
            "title": "Success",
            "type": "boolean"
          },
          "errors": {
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "title": "Errors",
            "type": "object"
          },
          "message": {
            "title": "Message",
            "type": [
              "string",
              "null"
            ]
          },
          "match_group_id": {
            "title": "Match Group Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "title": "PublicBankMatchSuccessSchema",
        "type": "object"
      },
      "PublicBankMatchCreateSchemaIn": {
        "description": "Body for `POST /matches/`. Pair bank-feed row(s) with DualEntry target(s).\n\nUse the singular fields for a 1:1 match, or the plural fields\n(`financial_transaction_ids` + `transaction_ids`/`entry_ids`) for an M:N\nmatch. Don't mix a singular field with its plural counterpart.",
        "properties": {
          "financial_transaction_id": {
            "description": "ID of the bank-feed row to match (from `/bank-transactions/`).",
            "title": "Financial Transaction Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "transaction_id": {
            "description": "DualEntry transaction id to match against. Pass this **or** `entry_id`, not both.",
            "title": "Transaction Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "entry_id": {
            "description": "DualEntry entry id to match against (use for partial matches like a single line of a journal entry). Pass this **or** `transaction_id`.",
            "title": "Entry Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "financial_transaction_ids": {
            "description": "M:N: bank-feed row ids to match as one group. Same account and same sign.",
            "title": "Financial Transaction Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "transaction_ids": {
            "description": "M:N: DualEntry transaction ids for the group. May be combined with `entry_ids`.",
            "title": "Transaction Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "entry_ids": {
            "description": "M:N: DualEntry entry ids for the group. May be combined with `transaction_ids`.",
            "title": "Entry Ids",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "title": "PublicBankMatchCreateSchemaIn",
        "type": "object"
      },
      "PublicBankMatchUnmatchSchemaIn": {
        "description": "Body for `POST /unmatches/`. Tear down the whole match group for a bank-feed row or a `match_group_id`.",
        "properties": {
          "financial_transaction_id": {
            "description": "ID of a bank-feed row in the group to unmatch.",
            "title": "Financial Transaction Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "match_group_id": {
            "description": "ID of the match group to unmatch (from a `POST /matches/` response).",
            "title": "Match Group Id",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "title": "PublicBankMatchUnmatchSchemaIn",
        "type": "object"
      },
      "PublicBankConnectionAccountSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "account_id": {
            "title": "Account Id",
            "type": "string"
          },
          "account_name": {
            "title": "Account Name",
            "type": "string"
          },
          "truncated_account_number": {
            "title": "Truncated Account Number",
            "type": [
              "string",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "title": "Currency Iso 4217 Code",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "id",
          "account_id",
          "account_name",
          "status"
        ],
        "title": "PublicBankConnectionAccountSchemaOut",
        "type": "object"
      },
      "PublicBankConnectionSchemaOut": {
        "properties": {
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "connection_source_id": {
            "title": "Connection Source Id",
            "type": "string"
          },
          "institution_name": {
            "title": "Institution Name",
            "type": [
              "string",
              "null"
            ]
          },
          "bank_url": {
            "default": "",
            "title": "Bank Url",
            "type": "string"
          },
          "icon_url": {
            "default": "",
            "title": "Icon Url",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "successfully_aggregated_at": {
            "title": "Successfully Aggregated At",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "last_sync_at": {
            "title": "Last Sync At",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "accounts": {
            "items": {
              "$ref": "#/components/schemas/PublicBankConnectionAccountSchemaOut"
            },
            "title": "Accounts",
            "type": "array"
          }
        },
        "required": [
          "created_at",
          "updated_at",
          "id",
          "connection_source_id",
          "status"
        ],
        "title": "PublicBankConnectionSchemaOut",
        "type": "object"
      },
      "PublicBankConnectionAccountSchemaIn": {
        "properties": {
          "account_id": {
            "description": "Stable customer-supplied account key.",
            "minLength": 1,
            "title": "Account Id",
            "type": "string"
          },
          "account_name": {
            "description": "Display name for the account.",
            "minLength": 1,
            "title": "Account Name",
            "type": "string"
          },
          "truncated_account_number": {
            "title": "Truncated Account Number",
            "type": [
              "string",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "title": "Currency Iso 4217 Code",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "description": "Optional account status. Omit to leave unchanged on upsert; defaults to active on create.",
            "title": "Status",
            "enum": [
              "active",
              "inactive"
            ],
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "account_id",
          "account_name"
        ],
        "title": "PublicBankConnectionAccountSchemaIn",
        "type": "object"
      },
      "PublicBankConnectionRegisterSchemaIn": {
        "properties": {
          "connection_source_id": {
            "minLength": 1,
            "title": "Connection Source Id",
            "type": "string"
          },
          "institution_name": {
            "minLength": 1,
            "title": "Institution Name",
            "type": "string"
          },
          "bank_url": {
            "title": "Bank Url",
            "type": [
              "string",
              "null"
            ]
          },
          "icon_url": {
            "title": "Icon Url",
            "type": [
              "string",
              "null"
            ]
          },
          "accounts": {
            "items": {
              "$ref": "#/components/schemas/PublicBankConnectionAccountSchemaIn"
            },
            "title": "Accounts",
            "type": "array"
          }
        },
        "required": [
          "connection_source_id",
          "institution_name"
        ],
        "title": "PublicBankConnectionRegisterSchemaIn",
        "type": "object"
      },
      "PublicBankConnectionListFilterSchema": {
        "properties": {
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicBankConnectionListFilterSchema",
        "type": "object"
      },
      "PagedPublicBankConnectionSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicBankConnectionSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicBankConnectionSchemaOut",
        "type": "object"
      },
      "PublicCustomerApiTransactionBatchOut": {
        "properties": {
          "success": {
            "title": "Success",
            "type": "boolean"
          },
          "results": {
            "items": {
              "$ref": "#/components/schemas/PublicCustomerApiTransactionResultOut"
            },
            "title": "Results",
            "type": "array"
          }
        },
        "required": [
          "success",
          "results"
        ],
        "title": "PublicCustomerApiTransactionBatchOut",
        "type": "object"
      },
      "PublicCustomerApiTransactionResultOut": {
        "properties": {
          "external_trx_id": {
            "title": "External Trx Id",
            "type": "string"
          },
          "status": {
            "description": "created | updated | error",
            "title": "Status",
            "type": "string"
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "error": {
            "title": "Error",
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "type": [
              "object",
              "null"
            ]
          }
        },
        "required": [
          "external_trx_id",
          "status"
        ],
        "title": "PublicCustomerApiTransactionResultOut",
        "type": "object"
      },
      "PublicCustomerApiTransactionBatchIn": {
        "properties": {
          "transactions": {
            "description": "Batch of transactions to upsert. Max 250 items per request.",
            "items": {
              "$ref": "#/components/schemas/PublicCustomerApiTransactionIn"
            },
            "title": "Transactions",
            "type": "array"
          }
        },
        "required": [
          "transactions"
        ],
        "title": "PublicCustomerApiTransactionBatchIn",
        "type": "object"
      },
      "PublicCustomerApiTransactionIn": {
        "properties": {
          "external_trx_id": {
            "description": "Customer idempotency key for this transaction (maps to `source_id`).",
            "title": "External Trx Id",
            "type": "string"
          },
          "account_id": {
            "description": "Customer-supplied account key from registration; must match the path account.",
            "title": "Account Id",
            "type": "string"
          },
          "date": {
            "description": "Pending/transaction date (required; used when `posted_at` is `null`).",
            "format": "date-time",
            "title": "Date",
            "type": "string"
          },
          "amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              }
            ],
            "description": "Signed amount. Positive = debit (money in), negative = credit (money out).",
            "title": "Amount"
          },
          "description": {
            "description": "Transaction description. Empty string is allowed.",
            "title": "Description",
            "type": "string"
          },
          "is_posted": {
            "description": "Whether the transaction is posted (true) or pending (false).",
            "title": "Is Posted",
            "type": "boolean"
          },
          "posted_at": {
            "description": "Posting date when known.",
            "title": "Posted At",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "counterparty": {
            "description": "Payee/merchant name; mapped into Bank Match payee path.",
            "title": "Counterparty",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "external_trx_id",
          "account_id",
          "date",
          "amount",
          "description",
          "is_posted"
        ],
        "title": "PublicCustomerApiTransactionIn",
        "type": "object"
      },
      "PublicBankConnectionAccountsRegisterSchemaIn": {
        "properties": {
          "accounts": {
            "items": {
              "$ref": "#/components/schemas/PublicBankConnectionAccountSchemaIn"
            },
            "minItems": 1,
            "title": "Accounts",
            "type": "array"
          }
        },
        "required": [
          "accounts"
        ],
        "title": "PublicBankConnectionAccountsRegisterSchemaIn",
        "type": "object"
      },
      "PublicQuoteListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "valid_until_from": {
            "title": "Valid Until From",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "valid_until_to": {
            "title": "Valid Until To",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "approval_status": {
            "title": "Approval Status",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "approval_status_scope": {
            "title": "Approval Status Scope",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicQuoteListFilterSchema",
        "type": "object"
      },
      "PagedPublicQuoteListSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicQuoteListSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicQuoteListSchemaOut",
        "type": "object"
      },
      "PublicQuoteListSchemaOut": {
        "properties": {
          "completed_approvals_count": {
            "default": 0,
            "title": "Completed Approvals Count",
            "type": "integer"
          },
          "total_approvals_count": {
            "default": 0,
            "title": "Total Approvals Count",
            "type": "integer"
          },
          "workflow_status": {
            "title": "Workflow Status",
            "type": [
              "string",
              "null"
            ]
          },
          "pending_approvers_count": {
            "default": 0,
            "title": "Pending Approvers Count",
            "type": "integer"
          },
          "send_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/QuoteSendStatus"
              }
            ],
            "default": "draft"
          },
          "can_send": {
            "default": false,
            "title": "Can Send",
            "type": "boolean"
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "valid_until": {
            "format": "date",
            "title": "Valid Until",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "title": "Currency Iso 4217 Code",
            "type": "string"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "contract_start_date": {
            "format": "date",
            "title": "Contract Start Date",
            "type": "string"
          },
          "contract_end_type": {
            "$ref": "#/components/schemas/QuoteContractEndType"
          },
          "contract_end_date": {
            "title": "Contract End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "sent_at": {
            "title": "Sent At",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "amount": {
            "description": "Quote total for one billing period of each line, calculated like an invoice total",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "number",
          "record_status",
          "valid_until",
          "company_id",
          "company_name",
          "customer_id",
          "customer_name",
          "name",
          "email",
          "currency_iso_4217_code",
          "term_id",
          "memo",
          "contract_start_date",
          "contract_end_type",
          "contract_end_date",
          "sent_at",
          "amount",
          "created_at",
          "updated_at"
        ],
        "title": "PublicQuoteListSchemaOut",
        "type": "object"
      },
      "QuoteContractEndType": {
        "enum": [
          "after",
          "ongoing",
          "date"
        ],
        "title": "QuoteContractEndType",
        "type": "string"
      },
      "QuoteSendStatus": {
        "enum": [
          "draft",
          "awaiting_approval",
          "approved",
          "rejected"
        ],
        "title": "QuoteSendStatus",
        "type": "string"
      },
      "PublicQuoteSchemaOut": {
        "description": "A quote with its lines, recipients (signing order included), send status, and totals by billing frequency.",
        "properties": {
          "bill_to_address": {
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": "string"
          },
          "ship_to_address": {
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": "string"
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "completed_approvals_count": {
            "default": 0,
            "title": "Completed Approvals Count",
            "type": "integer"
          },
          "total_approvals_count": {
            "default": 0,
            "title": "Total Approvals Count",
            "type": "integer"
          },
          "workflow_status": {
            "title": "Workflow Status",
            "type": [
              "string",
              "null"
            ]
          },
          "pending_approvers_count": {
            "default": 0,
            "title": "Pending Approvers Count",
            "type": "integer"
          },
          "send_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/QuoteSendStatus"
              }
            ],
            "default": "draft"
          },
          "can_send": {
            "default": false,
            "title": "Can Send",
            "type": "boolean"
          },
          "approval_info": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApprovalInfoSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "approval_chain": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ApprovalChainSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "bank_match_status": {
            "title": "Bank Match Status",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "description": "Code from the company quote sequence, e.g. QT-0001",
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "valid_until": {
            "format": "date",
            "title": "Valid Until",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "company_currency": {
            "title": "Company Currency",
            "type": "string"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "title": "Currency Iso 4217 Code",
            "type": "string"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "term_name": {
            "title": "Term Name",
            "type": "string"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "close_date": {
            "format": "date",
            "title": "Close Date",
            "type": "string"
          },
          "contract_start_date": {
            "format": "date",
            "title": "Contract Start Date",
            "type": "string"
          },
          "contract_end_type": {
            "$ref": "#/components/schemas/QuoteContractEndType"
          },
          "number_of_months": {
            "title": "Number Of Months",
            "type": [
              "integer",
              "null"
            ]
          },
          "contract_end_date": {
            "title": "Contract End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "contract_legal_terms": {
            "title": "Contract Legal Terms",
            "type": [
              "string",
              "null"
            ]
          },
          "sent_at": {
            "title": "Sent At",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "document_headline_total": {
            "$ref": "#/components/schemas/QuoteHeadlineTotal"
          },
          "document_total_rows": {
            "items": {
              "$ref": "#/components/schemas/QuoteTotalRow"
            },
            "title": "Document Total Rows",
            "type": "array"
          },
          "document_year_by_year": {
            "title": "Document Year By Year",
            "type": "boolean"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/QuoteItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "recipients": {
            "items": {
              "$ref": "#/components/schemas/QuoteRecipientOut"
            },
            "title": "Recipients",
            "type": "array"
          },
          "subtotal": {
            "description": "Sum of quantity x rate before discounts and tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Subtotal",
            "type": "string"
          },
          "discount_total": {
            "description": "Sum of inline line discounts",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Discount Total",
            "type": "string"
          },
          "tax_total": {
            "description": "Sum of line tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Tax Total",
            "type": "string"
          },
          "amount": {
            "description": "Quote total for one billing period of each line, calculated like an invoice total",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "contract_value": {
            "description": "Contract amount this quote converts to: quantity x rate over each line's term, before discount and tax; approvals compare this",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Contract Value",
            "type": "string"
          },
          "totals": {
            "$ref": "#/components/schemas/QuoteTotalsOut",
            "description": "Totals by billing frequency"
          },
          "created_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuditActorSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "bill_to_address",
          "ship_to_address",
          "created_at",
          "updated_at",
          "id",
          "number",
          "record_status",
          "valid_until",
          "company_id",
          "company_name",
          "company_currency",
          "customer_id",
          "customer_name",
          "name",
          "email",
          "currency_iso_4217_code",
          "term_id",
          "term_name",
          "memo",
          "close_date",
          "contract_start_date",
          "contract_end_type",
          "number_of_months",
          "contract_end_date",
          "contract_legal_terms",
          "sent_at",
          "document_headline_total",
          "document_total_rows",
          "document_year_by_year",
          "items",
          "recipients",
          "subtotal",
          "discount_total",
          "tax_total",
          "amount",
          "contract_value",
          "totals"
        ],
        "title": "PublicQuoteSchemaOut",
        "type": "object"
      },
      "QuoteHeadlineTotal": {
        "enum": [
          "tcv",
          "annual",
          "quarterly",
          "monthly",
          "first_year"
        ],
        "title": "QuoteHeadlineTotal",
        "type": "string"
      },
      "QuoteItemOut": {
        "properties": {
          "custom_fields": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/CustomFieldValuePairOutputSchema"
            },
            "title": "Custom Fields",
            "type": "array"
          },
          "item_type": {
            "title": "Item Type",
            "type": [
              "string",
              "null"
            ]
          },
          "hsn_sac_code": {
            "title": "Hsn Sac Code",
            "type": [
              "string",
              "null"
            ]
          },
          "discount_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DiscountType"
              },
              {
                "type": "null"
              }
            ]
          },
          "discount_value": {
            "title": "Discount Value",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxDataOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "item_id": {
            "title": "Item Id",
            "type": "integer"
          },
          "item_name": {
            "title": "Item Name",
            "type": "string"
          },
          "quantity": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Quantity",
            "type": "string"
          },
          "rate": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,10}0*$",
            "title": "Rate",
            "type": "string"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "title": "Memo",
            "type": "string"
          },
          "billing_frequency": {
            "$ref": "#/components/schemas/BillingCadence"
          },
          "billing_interval": {
            "title": "Billing Interval",
            "type": "integer"
          },
          "billing_start_date": {
            "description": "Set only when the line overrides the quote contract start",
            "title": "Billing Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_end_date": {
            "description": "Set only when the line overrides the quote contract end",
            "title": "Billing End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "service_start_date": {
            "description": "Billing start in effect: the line's own date or the quote contract start",
            "format": "date",
            "title": "Service Start Date",
            "type": "string"
          },
          "service_end_date": {
            "description": "Billing end in effect; null when ongoing",
            "title": "Service End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "periods_in_term": {
            "description": "Billing periods in the line's service period; null when ongoing",
            "title": "Periods In Term",
            "type": [
              "integer",
              "null"
            ]
          },
          "ramp_group_id": {
            "title": "Ramp Group Id",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "net_amount": {
            "description": "Net amount after discount, before tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Net Amount",
            "type": "string"
          },
          "tax_amount": {
            "description": "Calculated tax amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Tax Amount",
            "type": "string"
          },
          "gross_amount": {
            "description": "Calculated total amount including tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Gross Amount",
            "type": "string"
          },
          "amount": {
            "description": "Calculated total amount including tax named amount for backward compatibility",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Amount",
            "type": "string"
          },
          "discount_amount": {
            "description": "Inline discount amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "readOnly": true,
            "title": "Discount Amount",
            "type": "string"
          },
          "line_tcv": {
            "description": "Net amount x periods in term, before tax; null when ongoing",
            "readOnly": true,
            "title": "Line Tcv",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "item_id",
          "item_name",
          "quantity",
          "rate",
          "position",
          "memo",
          "billing_frequency",
          "billing_interval",
          "billing_start_date",
          "billing_end_date",
          "service_start_date",
          "service_end_date",
          "periods_in_term",
          "ramp_group_id",
          "net_amount",
          "tax_amount",
          "gross_amount",
          "amount",
          "discount_amount",
          "line_tcv"
        ],
        "title": "QuoteItemOut",
        "type": "object"
      },
      "QuoteRecipientOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "side": {
            "$ref": "#/components/schemas/QuoteRecipientSide"
          },
          "organization_user_id": {
            "title": "Organization User Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "is_signer": {
            "title": "Is Signer",
            "type": "boolean"
          },
          "signing_order": {
            "title": "Signing Order",
            "type": [
              "integer",
              "null"
            ]
          },
          "position": {
            "title": "Position",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "side",
          "organization_user_id",
          "customer_id",
          "name",
          "email",
          "is_signer",
          "signing_order",
          "position"
        ],
        "title": "QuoteRecipientOut",
        "type": "object"
      },
      "QuoteRecipientSide": {
        "enum": [
          "company",
          "buyer"
        ],
        "title": "QuoteRecipientSide",
        "type": "string"
      },
      "QuoteRecurringTotalsOut": {
        "properties": {
          "subtotal": {
            "description": "Sum of quantity x rate before discounts and tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Subtotal",
            "type": "string"
          },
          "discount_total": {
            "description": "Sum of inline line discounts",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Discount Total",
            "type": "string"
          },
          "tax_total": {
            "description": "Sum of line tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Tax Total",
            "type": "string"
          },
          "total": {
            "description": "Subtotal - discount + tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Total",
            "type": "string"
          },
          "billing_frequency": {
            "$ref": "#/components/schemas/BillingCadence"
          },
          "billing_interval": {
            "title": "Billing Interval",
            "type": "integer"
          }
        },
        "required": [
          "subtotal",
          "discount_total",
          "tax_total",
          "total",
          "billing_frequency",
          "billing_interval"
        ],
        "title": "QuoteRecurringTotalsOut",
        "type": "object"
      },
      "QuoteTotalRow": {
        "description": "Total rows on the quote document. Monthly, quarterly and annual are the recurring value per period.",
        "enum": [
          "one_time",
          "monthly",
          "quarterly",
          "annual",
          "first_year",
          "first_invoice",
          "tcv"
        ],
        "title": "QuoteTotalRow",
        "type": "string"
      },
      "QuoteTotalsBucketOut": {
        "properties": {
          "subtotal": {
            "description": "Sum of quantity x rate before discounts and tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Subtotal",
            "type": "string"
          },
          "discount_total": {
            "description": "Sum of inline line discounts",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Discount Total",
            "type": "string"
          },
          "tax_total": {
            "description": "Sum of line tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Tax Total",
            "type": "string"
          },
          "total": {
            "description": "Subtotal - discount + tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Total",
            "type": "string"
          }
        },
        "required": [
          "subtotal",
          "discount_total",
          "tax_total",
          "total"
        ],
        "title": "QuoteTotalsBucketOut",
        "type": "object"
      },
      "QuoteTotalsOut": {
        "properties": {
          "one_time": {
            "$ref": "#/components/schemas/QuoteTotalsBucketOut"
          },
          "recurring": {
            "description": "Amounts billed each period, one entry per billing frequency and interval, shortest period first",
            "items": {
              "$ref": "#/components/schemas/QuoteRecurringTotalsOut"
            },
            "title": "Recurring",
            "type": "array"
          },
          "mrr": {
            "description": "Monthly recurring revenue before tax, calculated like the contract MRR",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Mrr",
            "type": "string"
          },
          "arr": {
            "description": "Annual recurring revenue before tax, calculated like the contract ARR",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Arr",
            "type": "string"
          },
          "first_invoice_amount": {
            "description": "Amount with tax billed on the contract start date",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "First Invoice Amount",
            "type": "string"
          },
          "first_year_value": {
            "description": "Value of the periods that start in the first 12 months, net of discounts, before tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "First Year Value",
            "type": "string"
          },
          "tcv": {
            "description": "Total contract value net of discounts, before tax; null when any line is ongoing",
            "title": "Tcv",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "initial_term_tcv": {
            "description": "Total contract value of the initial term when the quote runs for a number of months",
            "title": "Initial Term Tcv",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          },
          "years": {
            "description": "Value per contract year; the years add up to the TCV. Empty when the quote is ongoing",
            "items": {
              "$ref": "#/components/schemas/QuoteYearTotalOut"
            },
            "title": "Years",
            "type": "array"
          }
        },
        "required": [
          "one_time",
          "recurring",
          "mrr",
          "arr",
          "first_invoice_amount",
          "first_year_value",
          "tcv",
          "initial_term_tcv",
          "years"
        ],
        "title": "QuoteTotalsOut",
        "type": "object"
      },
      "QuoteYearTotalOut": {
        "properties": {
          "year": {
            "description": "Contract year, starting at 1",
            "title": "Year",
            "type": "integer"
          },
          "start_date": {
            "format": "date",
            "title": "Start Date",
            "type": "string"
          },
          "end_date": {
            "format": "date",
            "title": "End Date",
            "type": "string"
          },
          "total": {
            "description": "Value of the billing periods that start in this year, net of discounts, before tax",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Total",
            "type": "string"
          }
        },
        "required": [
          "year",
          "start_date",
          "end_date",
          "total"
        ],
        "title": "QuoteYearTotalOut",
        "type": "object"
      },
      "PublicQuoteSchemaCreateIn": {
        "description": "Create a quote. `record_status` `posted` submits it: it runs the quote approval policy, and the quote is approved when no policy applies. Send `draft` to save without submitting. `items` replaces the quote lines wholesale: send `id` to keep a line, and send its billing fields (`billing_frequency`, `billing_interval`, `billing_start_date`, `billing_end_date`, `ramp_group_id`) or it is saved as a one-time line that follows the quote contract dates. On recurring lines `rate` is the price per billing period.",
        "properties": {
          "bill_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "ship_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "valid_until": {
            "format": "date",
            "title": "Valid Until",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "default": "",
            "maxLength": 128,
            "title": "Name",
            "type": "string"
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "title": "Currency Iso 4217 Code",
            "type": "string"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "close_date": {
            "format": "date",
            "title": "Close Date",
            "type": "string"
          },
          "contract_start_date": {
            "format": "date",
            "title": "Contract Start Date",
            "type": "string"
          },
          "contract_end_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/QuoteContractEndType"
              }
            ],
            "default": "after"
          },
          "number_of_months": {
            "default": 12,
            "title": "Number Of Months",
            "minimum": 1,
            "type": [
              "integer",
              "null"
            ]
          },
          "contract_end_date": {
            "title": "Contract End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "contract_legal_terms": {
            "title": "Contract Legal Terms",
            "type": [
              "string",
              "null"
            ]
          },
          "document_headline_total": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QuoteHeadlineTotal"
              },
              {
                "type": "null"
              }
            ],
            "description": "The large total on the quote document when the quote has recurring lines. Omit to use the organization default on create and keep the saved value on update."
          },
          "document_total_rows": {
            "description": "Total rows that print on the quote document, in print order. The row of the large total does not print. Omit to use the organization default on create and keep the saved rows on update.",
            "title": "Document Total Rows",
            "items": {
              "$ref": "#/components/schemas/QuoteTotalRow"
            },
            "maxItems": 7,
            "type": [
              "array",
              "null"
            ]
          },
          "document_year_by_year": {
            "description": "Print the year-by-year breakdown table on the quote document. Omit to keep the saved value on update; new quotes start with it off.",
            "title": "Document Year By Year",
            "type": [
              "boolean",
              "null"
            ]
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/QuoteItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "recipients": {
            "description": "Omit to leave the saved recipients unchanged",
            "title": "Recipients",
            "items": {
              "$ref": "#/components/schemas/QuoteRecipientIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "company_id",
          "email",
          "currency_iso_4217_code",
          "close_date",
          "contract_start_date"
        ],
        "title": "PublicQuoteSchemaCreateIn",
        "type": "object"
      },
      "QuoteItemIn": {
        "properties": {
          "discount_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DiscountType"
              },
              {
                "type": "null"
              }
            ]
          },
          "discount_value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Discount Value"
          },
          "tax": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemTaxData"
              },
              {
                "type": "null"
              }
            ]
          },
          "custom_fields": {
            "title": "Custom Fields",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "item_id": {
            "title": "Item Id",
            "type": "integer"
          },
          "quantity": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
                "type": "string"
              }
            ],
            "title": "Quantity"
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,10}0*$",
                "type": "string"
              }
            ],
            "description": "Price per billing period on recurring lines",
            "title": "Rate"
          },
          "position": {
            "minimum": 0,
            "title": "Position",
            "type": "integer"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "billing_frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillingCadence"
              }
            ],
            "default": "one_time"
          },
          "billing_interval": {
            "default": 1,
            "description": "Bill every N periods of the billing frequency",
            "minimum": 1,
            "title": "Billing Interval",
            "type": "integer"
          },
          "billing_start_date": {
            "description": "Null follows the quote contract start",
            "title": "Billing Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_end_date": {
            "description": "Null follows the quote contract end, so the line is ongoing on an ongoing quote",
            "title": "Billing End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "ramp_group_id": {
            "description": "Shared by the segments of one multi-year ramp: same item, frequency and interval over back-to-back service periods. Maps to the contract obligation ramp_group_id",
            "title": "Ramp Group Id",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "item_id",
          "quantity",
          "rate",
          "position"
        ],
        "title": "QuoteItemIn",
        "type": "object"
      },
      "QuoteRecipientIn": {
        "properties": {
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "side": {
            "$ref": "#/components/schemas/QuoteRecipientSide"
          },
          "organization_user_id": {
            "title": "Organization User Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "default": "",
            "maxLength": 255,
            "title": "Name",
            "type": "string"
          },
          "email": {
            "default": "",
            "maxLength": 254,
            "title": "Email",
            "type": "string"
          },
          "is_signer": {
            "default": true,
            "title": "Is Signer",
            "type": "boolean"
          },
          "signing_order": {
            "title": "Signing Order",
            "minimum": 1,
            "type": [
              "integer",
              "null"
            ]
          },
          "position": {
            "default": 1,
            "minimum": 1,
            "title": "Position",
            "type": "integer"
          }
        },
        "required": [
          "side"
        ],
        "title": "QuoteRecipientIn",
        "type": "object"
      },
      "PublicQuoteSchemaUpdateIn": {
        "description": "Replace a quote. Omitted optional fields are reset, except `recipients` and the document settings, which keep their saved values. `items` replaces the quote lines wholesale: send `id` to keep a line, and send its billing fields (`billing_frequency`, `billing_interval`, `billing_start_date`, `billing_end_date`, `ramp_group_id`) or it is saved as a one-time line that follows the quote contract dates. On recurring lines `rate` is the price per billing period.",
        "properties": {
          "bill_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Bill To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "ship_to_address": {
            "default": "",
            "deprecated": true,
            "description": "Deprecated: send the structured `billing_address` / `shipping_address` instead.",
            "title": "Ship To Address",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "valid_until": {
            "format": "date",
            "title": "Valid Until",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "default": "",
            "maxLength": 128,
            "title": "Name",
            "type": "string"
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "title": "Currency Iso 4217 Code",
            "type": "string"
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "type": "string"
          },
          "close_date": {
            "format": "date",
            "title": "Close Date",
            "type": "string"
          },
          "contract_start_date": {
            "format": "date",
            "title": "Contract Start Date",
            "type": "string"
          },
          "contract_end_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/QuoteContractEndType"
              }
            ],
            "default": "after"
          },
          "number_of_months": {
            "default": 12,
            "title": "Number Of Months",
            "minimum": 1,
            "type": [
              "integer",
              "null"
            ]
          },
          "contract_end_date": {
            "title": "Contract End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "contract_legal_terms": {
            "title": "Contract Legal Terms",
            "type": [
              "string",
              "null"
            ]
          },
          "document_headline_total": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QuoteHeadlineTotal"
              },
              {
                "type": "null"
              }
            ],
            "description": "The large total on the quote document when the quote has recurring lines. Omit to use the organization default on create and keep the saved value on update."
          },
          "document_total_rows": {
            "description": "Total rows that print on the quote document, in print order. The row of the large total does not print. Omit to use the organization default on create and keep the saved rows on update.",
            "title": "Document Total Rows",
            "items": {
              "$ref": "#/components/schemas/QuoteTotalRow"
            },
            "maxItems": 7,
            "type": [
              "array",
              "null"
            ]
          },
          "document_year_by_year": {
            "description": "Print the year-by-year breakdown table on the quote document. Omit to keep the saved value on update; new quotes start with it off.",
            "title": "Document Year By Year",
            "type": [
              "boolean",
              "null"
            ]
          },
          "items": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/QuoteItemIn"
            },
            "title": "Items",
            "type": "array"
          },
          "recipients": {
            "description": "Omit to leave the saved recipients unchanged",
            "title": "Recipients",
            "items": {
              "$ref": "#/components/schemas/QuoteRecipientIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted"
          }
        },
        "required": [
          "company_id",
          "email",
          "currency_iso_4217_code",
          "close_date",
          "contract_start_date"
        ],
        "title": "PublicQuoteSchemaUpdateIn",
        "type": "object"
      },
      "PublicQuoteSchemaPatchIn": {
        "description": "Update only the fields you send; lines, recipients, and document settings you leave out keep their saved values.\n\nSend `{\"record_status\": \"posted\"}` to submit a draft quote for approval. `items` and `recipients` replace the saved\nlist when sent, so send every line or recipient you want to keep, with its `id`.",
        "properties": {
          "valid_until": {
            "title": "Valid Until",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "maxLength": 128,
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "title": "Email",
            "type": [
              "string",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "title": "Currency Iso 4217 Code",
            "type": [
              "string",
              "null"
            ]
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "close_date": {
            "title": "Close Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "contract_start_date": {
            "title": "Contract Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "contract_end_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QuoteContractEndType"
              },
              {
                "type": "null"
              }
            ]
          },
          "number_of_months": {
            "title": "Number Of Months",
            "minimum": 1,
            "type": [
              "integer",
              "null"
            ]
          },
          "contract_end_date": {
            "title": "Contract End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "contract_legal_terms": {
            "title": "Contract Legal Terms",
            "type": [
              "string",
              "null"
            ]
          },
          "document_headline_total": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QuoteHeadlineTotal"
              },
              {
                "type": "null"
              }
            ]
          },
          "document_total_rows": {
            "title": "Document Total Rows",
            "items": {
              "$ref": "#/components/schemas/QuoteTotalRow"
            },
            "maxItems": 7,
            "type": [
              "array",
              "null"
            ]
          },
          "document_year_by_year": {
            "title": "Document Year By Year",
            "type": [
              "boolean",
              "null"
            ]
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaIn"
              },
              {
                "type": "null"
              }
            ]
          },
          "items": {
            "description": "`items` replaces the quote lines wholesale: send `id` to keep a line, and send its billing fields (`billing_frequency`, `billing_interval`, `billing_start_date`, `billing_end_date`, `ramp_group_id`) or it is saved as a one-time line that follows the quote contract dates. On recurring lines `rate` is the price per billing period.",
            "title": "Items",
            "items": {
              "$ref": "#/components/schemas/QuoteItemIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "recipients": {
            "title": "Recipients",
            "items": {
              "$ref": "#/components/schemas/QuoteRecipientIn"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "title": "PublicQuoteSchemaPatchIn",
        "type": "object"
      },
      "PublicQuoteSendSchemaIn": {
        "properties": {
          "to_emails": {
            "description": "Omit to send to the quote's buyer recipients, or to its contact email when it has none",
            "items": {
              "type": "string"
            },
            "title": "To Emails",
            "type": "array"
          },
          "cc_emails": {
            "description": "Omit to use the organization's quote CC list; send [] for none",
            "title": "Cc Emails",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "bcc_emails": {
            "description": "Omit to use the organization's quote BCC list; send [] for none",
            "title": "Bcc Emails",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "reply_to": {
            "description": "Omit to use the organization's quote reply-to address",
            "title": "Reply To",
            "type": [
              "string",
              "null"
            ]
          },
          "subject": {
            "description": "Omit to use the organization's quote email subject",
            "title": "Subject",
            "type": [
              "string",
              "null"
            ]
          },
          "message": {
            "description": "Omit to use the organization's quote email message",
            "title": "Message",
            "type": [
              "string",
              "null"
            ]
          },
          "attach_pdf": {
            "description": "Omit to use the organization's quote email setting",
            "title": "Attach Pdf",
            "type": [
              "boolean",
              "null"
            ]
          },
          "pdf_content": {
            "description": "The quote PDF, base64 encoded. Required when the PDF is attached: the API does not render quote PDFs, so send your own or set `attach_pdf` to `false`",
            "title": "Pdf Content",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicQuoteSendSchemaIn",
        "type": "object"
      },
      "PublicEInvoicingStatusSchemaOut": {
        "properties": {
          "subscription_enabled": {
            "description": "True when the organization has the e-invoicing subscription.",
            "title": "Subscription Enabled",
            "type": "boolean"
          }
        },
        "required": [
          "subscription_enabled"
        ],
        "title": "PublicEInvoicingStatusSchemaOut",
        "type": "object"
      },
      "IdentifierScope": {
        "description": "Where an identity field belongs: to one filing regime, or to a delivery network that every regime shares.",
        "enum": [
          "regime",
          "network:peppol"
        ],
        "title": "IdentifierScope",
        "type": "string"
      },
      "PublicEInvoicingCountrySchemaOut": {
        "properties": {
          "code": {
            "$ref": "#/components/schemas/SystemCountries"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "agency": {
            "description": "The authority or network that receives the e-invoices.",
            "title": "Agency",
            "type": "string"
          },
          "standard": {
            "title": "Standard",
            "type": "string"
          },
          "registration_required": {
            "description": "True when a company registers with the agency before it files.",
            "title": "Registration Required",
            "type": "boolean"
          },
          "identifier_fields": {
            "$ref": "#/components/schemas/PublicEInvoicingIdentifierFieldsSchemaOut",
            "description": "The identity fields that the country asks for, for each kind of party."
          },
          "enabled_for_organization": {
            "default": false,
            "description": "True when a company of the organization files e-invoices in the country.",
            "title": "Enabled For Organization",
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "name",
          "agency",
          "standard",
          "registration_required",
          "identifier_fields"
        ],
        "title": "PublicEInvoicingCountrySchemaOut",
        "type": "object"
      },
      "PublicEInvoicingIdentifierFieldSchemaOut": {
        "properties": {
          "key": {
            "title": "Key",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "required": {
            "title": "Required",
            "type": "boolean"
          },
          "pattern": {
            "description": "The regular expression that the whole value matches.",
            "title": "Pattern",
            "type": "string"
          },
          "description": {
            "default": "",
            "title": "Description",
            "type": "string"
          },
          "options": {
            "default": [],
            "description": "The allowed values. For `peppol_id`, the schemes that the ID can start with (`<scheme>:<code>`). Empty for a free text field.",
            "items": {
              "$ref": "#/components/schemas/PublicEInvoicingIdentifierOptionSchemaOut"
            },
            "title": "Options",
            "type": "array"
          },
          "scope": {
            "allOf": [
              {
                "$ref": "#/components/schemas/IdentifierScope"
              }
            ],
            "default": "regime",
            "description": "`regime` for a field of this country. A network scope holds one value in every country of the network."
          }
        },
        "required": [
          "key",
          "label",
          "required",
          "pattern"
        ],
        "title": "PublicEInvoicingIdentifierFieldSchemaOut",
        "type": "object"
      },
      "PublicEInvoicingIdentifierFieldsSchemaOut": {
        "properties": {
          "company": {
            "items": {
              "$ref": "#/components/schemas/PublicEInvoicingIdentifierFieldSchemaOut"
            },
            "title": "Company",
            "type": "array"
          },
          "customer": {
            "items": {
              "$ref": "#/components/schemas/PublicEInvoicingIdentifierFieldSchemaOut"
            },
            "title": "Customer",
            "type": "array"
          },
          "vendor": {
            "items": {
              "$ref": "#/components/schemas/PublicEInvoicingIdentifierFieldSchemaOut"
            },
            "title": "Vendor",
            "type": "array"
          }
        },
        "required": [
          "company",
          "customer",
          "vendor"
        ],
        "title": "PublicEInvoicingIdentifierFieldsSchemaOut",
        "type": "object"
      },
      "PublicEInvoicingIdentifierOptionSchemaOut": {
        "properties": {
          "value": {
            "title": "Value",
            "type": "string"
          },
          "label": {
            "title": "Label",
            "type": "string"
          },
          "description": {
            "default": "",
            "description": "Guidance for the option. A Peppol scheme option says the form of an ID under that scheme.",
            "title": "Description",
            "type": "string"
          }
        },
        "required": [
          "value",
          "label"
        ],
        "title": "PublicEInvoicingIdentifierOptionSchemaOut",
        "type": "object"
      },
      "CheckKey": {
        "enum": [
          "nexus",
          "workspace",
          "workflows",
          "record_codes",
          "numbering",
          "credit_numbering"
        ],
        "title": "CheckKey",
        "type": "string"
      },
      "CountrySource": {
        "enum": [
          "nexus",
          "address"
        ],
        "title": "CountrySource",
        "type": "string"
      },
      "DisabledReason": {
        "enum": [
          "other_provider",
          "not_applicable",
          "other"
        ],
        "title": "DisabledReason",
        "type": "string"
      },
      "FilingDecision": {
        "enum": [
          "enabled",
          "disabled"
        ],
        "title": "FilingDecision",
        "type": "string"
      },
      "PublicEInvoicingCompaniesSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicEInvoicingCompanySchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PublicEInvoicingCompaniesSchemaOut",
        "type": "object"
      },
      "PublicEInvoicingCompanyCountrySchemaOut": {
        "properties": {
          "country": {
            "$ref": "#/components/schemas/SystemCountries"
          },
          "source": {
            "$ref": "#/components/schemas/CountrySource"
          },
          "decision": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilingDecision"
              },
              {
                "type": "null"
              }
            ],
            "description": "The stored decision. Null until a user decides."
          },
          "disabled_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DisabledReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "title": "Note",
            "type": "string"
          },
          "decided_at": {
            "title": "Decided At",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "checks": {
            "items": {
              "$ref": "#/components/schemas/PublicEInvoicingReadinessCheckSchemaOut"
            },
            "title": "Checks",
            "type": "array"
          },
          "registration_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RegistrationStatus"
              },
              {
                "type": "null"
              }
            ],
            "description": "Null when the company has no registration in the country."
          },
          "registration_notes": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RegistrationNote"
            },
            "title": "Registration Notes",
            "type": "array"
          },
          "blocked_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BlockedReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Set while a broken setup of the country holds the registration."
          },
          "blocked_at": {
            "title": "Blocked At",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "country",
          "source",
          "note",
          "checks"
        ],
        "title": "PublicEInvoicingCompanyCountrySchemaOut",
        "type": "object"
      },
      "PublicEInvoicingCompanySchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "short_code": {
            "title": "Short Code",
            "type": [
              "string",
              "null"
            ]
          },
          "countries": {
            "items": {
              "$ref": "#/components/schemas/PublicEInvoicingCompanyCountrySchemaOut"
            },
            "title": "Countries",
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "countries"
        ],
        "title": "PublicEInvoicingCompanySchemaOut",
        "type": "object"
      },
      "PublicEInvoicingReadinessCheckSchemaOut": {
        "properties": {
          "code": {
            "$ref": "#/components/schemas/CheckKey"
          },
          "passed": {
            "title": "Passed",
            "type": "boolean"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "params": {
            "additionalProperties": {
              "type": "string"
            },
            "default": {},
            "description": "The values that the message names, such as the country of a missing nexus.",
            "title": "Params",
            "type": "object"
          }
        },
        "required": [
          "code",
          "passed",
          "message"
        ],
        "title": "PublicEInvoicingReadinessCheckSchemaOut",
        "type": "object"
      },
      "RegistrationNote": {
        "description": "Facts about a registration that the client translates and shows before the user registers.",
        "enum": [
          "peppol_inbox_not_read"
        ],
        "title": "RegistrationNote",
        "type": "string"
      },
      "RegistrationStatus": {
        "enum": [
          "details_required",
          "sent_to_engine",
          "action_required",
          "registered",
          "failed",
          "unregistered"
        ],
        "title": "RegistrationStatus",
        "type": "string"
      },
      "PublicEInvoicingFaultSchemaOut": {
        "properties": {
          "code": {
            "description": "The code of the fault. Treat a code that you do not know as a general fault: stored filings keep old codes.",
            "title": "Code",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "paths": {
            "items": {
              "type": "string"
            },
            "title": "Paths",
            "type": "array"
          }
        },
        "required": [
          "code",
          "message",
          "paths"
        ],
        "title": "PublicEInvoicingFaultSchemaOut",
        "type": "object"
      },
      "PublicEInvoicingRegistrationSchemaOut": {
        "description": "The registration of a company with the agency of one country. Change it in the DualEntry app.",
        "properties": {
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "country": {
            "$ref": "#/components/schemas/SystemCountries"
          },
          "agency": {
            "title": "Agency",
            "type": "string"
          },
          "required": {
            "description": "True when the company registers with the agency before it files.",
            "title": "Required",
            "type": "boolean"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RegistrationStatus"
              },
              {
                "type": "null"
              }
            ],
            "description": "Null when the company has no registration in the country."
          },
          "identifiers": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "The identity fields of the company in the country.",
            "title": "Identifiers",
            "type": "object"
          },
          "missing": {
            "description": "The required identity fields that the company has no value for.",
            "items": {
              "type": "string"
            },
            "title": "Missing",
            "type": "array"
          },
          "faults": {
            "description": "Why the agency refused the registration.",
            "items": {
              "$ref": "#/components/schemas/PublicEInvoicingFaultSchemaOut"
            },
            "title": "Faults",
            "type": "array"
          },
          "actions": {
            "description": "The registration actions whose public route the key may call. Registration changes are made in the DualEntry app, so the list is empty.",
            "items": {
              "$ref": "#/components/schemas/RegistrationAction"
            },
            "title": "Actions",
            "type": "array"
          },
          "waiting_for": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RegistrationWaitingFor"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a registration that did not start waits for: a `decision` or the `fields`."
          },
          "registration_notes": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RegistrationNote"
            },
            "title": "Registration Notes",
            "type": "array"
          },
          "blocked_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BlockedReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Set while a broken setup of the country holds the registration."
          },
          "blocked_at": {
            "title": "Blocked At",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "registered_at": {
            "title": "Registered At",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_at": {
            "title": "Updated At",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "company_id",
          "country",
          "agency",
          "required",
          "identifiers",
          "missing",
          "faults",
          "actions"
        ],
        "title": "PublicEInvoicingRegistrationSchemaOut",
        "type": "object"
      },
      "RegistrationAction": {
        "description": "What a user can do with a registration now.",
        "enum": [
          "retry",
          "refresh",
          "unregister",
          "open_wizard"
        ],
        "title": "RegistrationAction",
        "type": "string"
      },
      "RegistrationWaitingFor": {
        "description": "What a registration that did not start waits for. The client translates the code.",
        "enum": [
          "decision",
          "fields"
        ],
        "title": "RegistrationWaitingFor",
        "type": "string"
      },
      "EventSource": {
        "enum": [
          "post",
          "task",
          "user",
          "webhook",
          "sweeper",
          "staff"
        ],
        "title": "EventSource",
        "type": "string"
      },
      "FilingEventKind": {
        "description": "What a filing event records. A hold keeps the status and stores why a broken setup holds the filing.",
        "enum": [
          "status_change",
          "hold"
        ],
        "title": "FilingEventKind",
        "type": "string"
      },
      "PublicEInvoicingFilingEventSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "from_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilingStatus"
              },
              {
                "type": "null"
              }
            ],
            "description": "Null on the first event. Equal to `to_status` on a `hold` event."
          },
          "to_status": {
            "$ref": "#/components/schemas/FilingStatus"
          },
          "source": {
            "$ref": "#/components/schemas/EventSource"
          },
          "event_kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FilingEventKind"
              }
            ],
            "default": "status_change",
            "description": "`hold`: a broken setup holds the filing and the status stays. `status_change`: the status moved."
          },
          "detail": {
            "title": "Detail",
            "type": "string"
          },
          "blocked_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BlockedReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why a broken setup holds the filing. Set only on a `hold` event."
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "filing_id": {
            "title": "Filing Id",
            "type": "integer"
          },
          "kind": {
            "$ref": "#/components/schemas/SubmissionKind"
          },
          "record_number": {
            "description": "The `number` of the invoice or customer credit. Null when the record is gone.",
            "title": "Record Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_code": {
            "description": "The `code` of the invoice or customer credit. Empty when the record has none.",
            "title": "Record Code",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "country": {
            "$ref": "#/components/schemas/SystemCountries"
          },
          "agency": {
            "title": "Agency",
            "type": "string"
          },
          "lifecycle": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilingLifecycle"
              },
              {
                "type": "null"
              }
            ],
            "description": "The `lifecycle` of the filing: `network_delivery` events are deliveries to the receiver."
          }
        },
        "required": [
          "id",
          "to_status",
          "source",
          "detail",
          "created_at",
          "filing_id",
          "kind",
          "record_code",
          "company_id",
          "company_name",
          "country",
          "agency"
        ],
        "title": "PublicEInvoicingFilingEventSchemaOut",
        "type": "object"
      },
      "PublicEInvoicingFilingEventsSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicEInvoicingFilingEventSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PublicEInvoicingFilingEventsSchemaOut",
        "type": "object"
      },
      "SubmissionKind": {
        "enum": [
          "invoice",
          "credit_note"
        ],
        "title": "SubmissionKind",
        "type": "string"
      },
      "Network": {
        "description": "A delivery network that takes a document to the inbox of the receiver.",
        "enum": [
          "peppol"
        ],
        "title": "Network",
        "type": "string"
      },
      "NetworkStatus": {
        "description": "Whether a customer can receive documents on the network of a company's filing country.",
        "enum": [
          "on_network",
          "not_on_network",
          "unknown"
        ],
        "title": "NetworkStatus",
        "type": "string"
      },
      "PublicEInvoicingPreflightSchemaOut": {
        "description": "Whether the customer can receive an e-invoice of the company, before you post the record.",
        "properties": {
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": "integer"
          },
          "country": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCountries"
              },
              {
                "type": "null"
              }
            ],
            "description": "The filing country. Null when the company files nothing through a network."
          },
          "network": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Network"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NetworkStatus"
              },
              {
                "type": "null"
              }
            ],
            "description": "`not_on_network`: DualEntry does not file the record, and the customer gets the DualEntry PDF. `unknown`: the network did not answer in time. Null when no network applies."
          },
          "participant_id": {
            "title": "Participant Id",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "company_id",
          "customer_id"
        ],
        "title": "PublicEInvoicingPreflightSchemaOut",
        "type": "object"
      },
      "CorrectionOption": {
        "enum": [
          "credit_note"
        ],
        "title": "CorrectionOption",
        "type": "string"
      },
      "NotFiledReason": {
        "description": "Why DualEntry did not file a record. The client translates the code.",
        "enum": [
          "not_on_network"
        ],
        "title": "NotFiledReason",
        "type": "string"
      },
      "PublicEInvoicingFileSchemaOut": {
        "properties": {
          "attachment_id": {
            "title": "Attachment Id",
            "type": "integer"
          },
          "key": {
            "title": "Key",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "mime": {
            "title": "Mime",
            "type": "string"
          }
        },
        "required": [
          "attachment_id",
          "key",
          "name",
          "mime"
        ],
        "title": "PublicEInvoicingFileSchemaOut",
        "type": "object"
      },
      "PublicInvoiceEInvoiceSchemaOut": {
        "properties": {
          "country": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCountries"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilingStatus"
              },
              {
                "type": "null"
              }
            ],
            "description": "Null when DualEntry did not file the record."
          },
          "agency": {
            "default": "",
            "title": "Agency",
            "type": "string"
          },
          "decision_required": {
            "description": "True when the company has no decision yet for the filing country.",
            "title": "Decision Required",
            "type": "boolean"
          },
          "lifecycle": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilingLifecycle"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a cleared filing means: `network_delivery` reached the inbox of the receiver, the others are confirmed by the authority."
          },
          "authority_reference": {
            "description": "The ID that the agency or the network gave the document: the SAT UUID, the CAE or the SDI ID, or the Peppol message ID of a Peppol delivery. A Peppol message ID proves the delivery, not a verdict of the receiver. Null until the filing is cleared, so a filing that waits after a retry does not show the ID of the earlier attempt. Null when the engine gave no ID.",
            "title": "Authority Reference",
            "type": [
              "string",
              "null"
            ]
          },
          "faults": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicEInvoicingFaultSchemaOut"
            },
            "title": "Faults",
            "type": "array"
          },
          "send_held": {
            "description": "True while the authority must clear the e-invoice before the customer gets it.",
            "title": "Send Held",
            "type": "boolean"
          },
          "send_held_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendHeldReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the customer cannot get the record yet. Null when `send_held` is false."
          },
          "blocked_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BlockedReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Set while a broken setup of the country holds the filing."
          },
          "blocked_at": {
            "title": "Blocked At",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "not_filed_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NotFiledReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Set when DualEntry did not file the record, such as for a customer that is not on Peppol."
          },
          "files": {
            "default": [],
            "description": "The legal files of the filing, such as the authority PDF and XML.",
            "items": {
              "$ref": "#/components/schemas/PublicEInvoicingFileSchemaOut"
            },
            "title": "Files",
            "type": "array"
          },
          "legal_pdf": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PublicEInvoicingFileSchemaOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The authority PDF that the customer gets instead of the DualEntry PDF."
          },
          "actions": {
            "default": [],
            "description": "What this API key can do with the filing now: `retry` a failed or rejected filing, or `refresh` a started one. `edit`: update the record of a failed or rejected filing, then `retry` it. It needs the record edit permission, and it is absent while the organization makes posted records immutable. Empty without the e-invoicing subscription.",
            "items": {
              "$ref": "#/components/schemas/SubmissionAction"
            },
            "title": "Actions",
            "type": "array"
          },
          "corrections": {
            "default": [],
            "description": "How this API key can correct a cleared invoice. `credit_note`: post a customer credit for the invoice. You need the customer credit create permission.",
            "items": {
              "$ref": "#/components/schemas/CorrectionOption"
            },
            "title": "Corrections",
            "type": "array"
          }
        },
        "required": [
          "decision_required",
          "send_held"
        ],
        "title": "PublicInvoiceEInvoiceSchemaOut",
        "type": "object"
      },
      "SubmissionAction": {
        "description": "What a user can do with a filing now.",
        "enum": [
          "retry",
          "refresh",
          "edit"
        ],
        "title": "SubmissionAction",
        "type": "string"
      },
      "PublicEInvoicingFilingSchemaOut": {
        "description": "The e-invoice filing of a record. A record that DualEntry did not file has a null status and no files.",
        "properties": {
          "country": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCountries"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilingStatus"
              },
              {
                "type": "null"
              }
            ],
            "description": "Null when DualEntry did not file the record."
          },
          "agency": {
            "default": "",
            "title": "Agency",
            "type": "string"
          },
          "decision_required": {
            "description": "True when the company has no decision yet for the filing country.",
            "title": "Decision Required",
            "type": "boolean"
          },
          "lifecycle": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilingLifecycle"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a cleared filing means: `network_delivery` reached the inbox of the receiver, the others are confirmed by the authority."
          },
          "authority_reference": {
            "description": "The ID that the agency or the network gave the document: the SAT UUID, the CAE or the SDI ID, or the Peppol message ID of a Peppol delivery. A Peppol message ID proves the delivery, not a verdict of the receiver. Null until the filing is cleared, so a filing that waits after a retry does not show the ID of the earlier attempt. Null when the engine gave no ID.",
            "title": "Authority Reference",
            "type": [
              "string",
              "null"
            ]
          },
          "faults": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/PublicEInvoicingFaultSchemaOut"
            },
            "title": "Faults",
            "type": "array"
          },
          "send_held": {
            "description": "True while the authority must clear the e-invoice before the customer gets it.",
            "title": "Send Held",
            "type": "boolean"
          },
          "send_held_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SendHeldReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the customer cannot get the record yet. Null when `send_held` is false."
          },
          "blocked_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BlockedReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Set while a broken setup of the country holds the filing."
          },
          "blocked_at": {
            "title": "Blocked At",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "not_filed_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NotFiledReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Set when DualEntry did not file the record, such as for a customer that is not on Peppol."
          },
          "files": {
            "default": [],
            "description": "The legal files of the filing, such as the authority PDF and XML.",
            "items": {
              "$ref": "#/components/schemas/PublicEInvoicingFileSchemaOut"
            },
            "title": "Files",
            "type": "array"
          },
          "legal_pdf": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PublicEInvoicingFileSchemaOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The authority PDF that the customer gets instead of the DualEntry PDF."
          },
          "actions": {
            "default": [],
            "description": "What this API key can do with the filing now: `retry` a failed or rejected filing, or `refresh` a started one. `edit`: update the record of a failed or rejected filing, then `retry` it. It needs the record edit permission, and it is absent while the organization makes posted records immutable. Empty without the e-invoicing subscription.",
            "items": {
              "$ref": "#/components/schemas/SubmissionAction"
            },
            "title": "Actions",
            "type": "array"
          }
        },
        "required": [
          "decision_required",
          "send_held"
        ],
        "title": "PublicEInvoicingFilingSchemaOut",
        "type": "object"
      },
      "PublicEInvoicingFileUrlSchemaOut": {
        "properties": {
          "url": {
            "description": "A short-lived URL that downloads the file.",
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "title": "PublicEInvoicingFileUrlSchemaOut",
        "type": "object"
      },
      "PublicEInvoicingEventSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "from_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FilingStatus"
              },
              {
                "type": "null"
              }
            ],
            "description": "Null on the first event. Equal to `to_status` on a `hold` event."
          },
          "to_status": {
            "$ref": "#/components/schemas/FilingStatus"
          },
          "source": {
            "$ref": "#/components/schemas/EventSource"
          },
          "event_kind": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FilingEventKind"
              }
            ],
            "default": "status_change",
            "description": "`hold`: a broken setup holds the filing and the status stays. `status_change`: the status moved."
          },
          "detail": {
            "title": "Detail",
            "type": "string"
          },
          "blocked_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BlockedReason"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why a broken setup holds the filing. Set only on a `hold` event."
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "to_status",
          "source",
          "detail",
          "created_at"
        ],
        "title": "PublicEInvoicingEventSchemaOut",
        "type": "object"
      },
      "ParticipantSource": {
        "description": "How DualEntry found the network participant of a customer.",
        "enum": [
          "given",
          "derived",
          "directory"
        ],
        "title": "ParticipantSource",
        "type": "string"
      },
      "PublicEInvoicingParticipantSchemaOut": {
        "properties": {
          "participant_id": {
            "title": "Participant Id",
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/ParticipantSource",
            "description": "`given` by the customer, `derived` from its identifiers, or found in the `directory`."
          },
          "resolved_at": {
            "format": "date-time",
            "title": "Resolved At",
            "type": "string"
          }
        },
        "required": [
          "participant_id",
          "source",
          "resolved_at"
        ],
        "title": "PublicEInvoicingParticipantSchemaOut",
        "type": "object"
      },
      "PublicEInvoicingPartyIdentifiersSchemaOut": {
        "description": "The identity fields of a customer or vendor in one country, or on one network when `country` is null.",
        "properties": {
          "country": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCountries"
              },
              {
                "type": "null"
              }
            ],
            "description": "The country of a `regime` row. Null for a network row."
          },
          "scope": {
            "allOf": [
              {
                "$ref": "#/components/schemas/IdentifierScope"
              }
            ],
            "default": "regime"
          },
          "identifiers": {
            "additionalProperties": {
              "type": "string"
            },
            "title": "Identifiers",
            "type": "object"
          },
          "participant": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PublicEInvoicingParticipantSchemaOut"
              },
              {
                "type": "null"
              }
            ],
            "description": "The participant that DualEntry last found on the network of a network row."
          }
        },
        "required": [
          "identifiers"
        ],
        "title": "PublicEInvoicingPartyIdentifiersSchemaOut",
        "type": "object"
      },
      "PublicEInvoicingCustomerIdentifiersSchemaIn": {
        "properties": {
          "items": {
            "description": "One row for each country or network to change.",
            "items": {
              "$ref": "#/components/schemas/PublicEInvoicingIdentifierRowSchemaIn"
            },
            "minItems": 1,
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "PublicEInvoicingCustomerIdentifiersSchemaIn",
        "type": "object"
      },
      "PublicEInvoicingIdentifierRowSchemaIn": {
        "properties": {
          "scope": {
            "allOf": [
              {
                "$ref": "#/components/schemas/IdentifierScope"
              }
            ],
            "default": "regime",
            "description": "`regime` for the fields of one country, or a network scope such as `network:peppol`."
          },
          "country": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCountries"
              },
              {
                "type": "null"
              }
            ],
            "description": "The country of a `regime` row. Leave it null for a network row."
          },
          "identifiers": {
            "additionalProperties": {
              "maxLength": 254,
              "type": "string"
            },
            "description": "The fields of the row, keyed as the country lists them. These values replace the stored row. A blank value clears its field.",
            "title": "Identifiers",
            "type": "object"
          }
        },
        "required": [
          "identifiers"
        ],
        "title": "PublicEInvoicingIdentifierRowSchemaIn",
        "type": "object"
      },
      "PaymentMethodListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "items": {
              "type": "boolean"
            },
            "uniqueItems": true,
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "title": "PaymentMethodListFilterSchema",
        "type": "object"
      },
      "PagedPaymentMethodSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PaymentMethodSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPaymentMethodSchemaOut",
        "type": "object"
      },
      "PaymentMethodSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "use_next_check_number": {
            "title": "Use Next Check Number",
            "type": "boolean"
          },
          "print_check": {
            "title": "Print Check",
            "type": "boolean"
          },
          "exclude_from_1099": {
            "title": "Exclude From 1099",
            "type": "boolean"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "is_active",
          "use_next_check_number",
          "print_check",
          "exclude_from_1099",
          "record_status",
          "created_at",
          "updated_at"
        ],
        "title": "PaymentMethodSchemaOut",
        "type": "object"
      },
      "TermListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "items": {
              "type": "boolean"
            },
            "uniqueItems": true,
            "type": [
              "array",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          },
          "term_type": {
            "title": "Term Type",
            "items": {
              "$ref": "#/components/schemas/TermType"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "days_until_net_due_min": {
            "title": "Days Until Net Due Min",
            "maximum": 99999,
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "days_until_net_due_max": {
            "title": "Days Until Net Due Max",
            "maximum": 99999,
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "title": "TermListFilterSchema",
        "type": "object"
      },
      "TermType": {
        "description": "Standard means that the due date is calculated based on the days until net due.",
        "enum": [
          "standard",
          "date_driven",
          "early_discount",
          "installment"
        ],
        "title": "TermType",
        "type": "string"
      },
      "PagedTermSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/TermSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedTermSchemaOut",
        "type": "object"
      },
      "TermInstallmentDefinitionSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "position": {
            "title": "Position",
            "type": "integer"
          },
          "percent": {
            "title": "Percent",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "amount": {
            "title": "Amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "is_remainder": {
            "default": false,
            "title": "Is Remainder",
            "type": "boolean"
          },
          "days_after": {
            "title": "Days After",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "position",
          "percent",
          "amount",
          "days_after"
        ],
        "title": "TermInstallmentDefinitionSchemaOut",
        "type": "object"
      },
      "TermSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "term_type": {
            "$ref": "#/components/schemas/TermType"
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "days_until_net_due": {
            "title": "Days Until Net Due",
            "type": [
              "integer",
              "null"
            ]
          },
          "day_of_month_net_due": {
            "title": "Day Of Month Net Due",
            "type": [
              "integer",
              "null"
            ]
          },
          "number_of_days_next_month": {
            "title": "Number Of Days Next Month",
            "type": [
              "integer",
              "null"
            ]
          },
          "discount_percent": {
            "title": "Discount Percent",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "discount_days": {
            "title": "Discount Days",
            "type": [
              "integer",
              "null"
            ]
          },
          "sales_discount_account_id": {
            "title": "Sales Discount Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "purchase_discount_account_id": {
            "title": "Purchase Discount Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "installment_definitions": {
            "items": {
              "$ref": "#/components/schemas/TermInstallmentDefinitionSchemaOut"
            },
            "title": "Installment Definitions",
            "type": "array"
          },
          "is_default": {
            "default": false,
            "title": "Is Default",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "is_active",
          "term_type",
          "record_status",
          "days_until_net_due",
          "day_of_month_net_due",
          "number_of_days_next_month"
        ],
        "title": "TermSchemaOut",
        "type": "object"
      },
      "ProjectBillingMethod": {
        "enum": [
          "fixed_fee",
          "time_and_materials",
          "milestone"
        ],
        "title": "ProjectBillingMethod",
        "type": "string"
      },
      "ProjectBillingType": {
        "enum": [
          "time_and_materials",
          "fixed_fee",
          "non_billable"
        ],
        "title": "ProjectBillingType",
        "type": "string"
      },
      "ProjectListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "status": {
            "title": "Status",
            "items": {
              "$ref": "#/components/schemas/ProjectStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "status_extended": {
            "title": "Status Extended",
            "items": {
              "$ref": "#/components/schemas/ProjectStatusExtended"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "billing_method": {
            "title": "Billing Method",
            "items": {
              "$ref": "#/components/schemas/ProjectBillingMethod"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "billing_type": {
            "title": "Billing Type",
            "items": {
              "$ref": "#/components/schemas/ProjectBillingType"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "project_manager_id": {
            "title": "Project Manager Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date_gte": {
            "title": "Start Date Gte",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "start_date_lte": {
            "title": "Start Date Lte",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date_gte": {
            "title": "End Date Gte",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date_lte": {
            "title": "End Date Lte",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "ProjectListFilterSchema",
        "type": "object"
      },
      "ProjectStatus": {
        "enum": [
          "active",
          "archived"
        ],
        "title": "ProjectStatus",
        "type": "string"
      },
      "ProjectStatusExtended": {
        "enum": [
          "planning",
          "active",
          "on_hold",
          "completed",
          "closed",
          "archived"
        ],
        "title": "ProjectStatusExtended",
        "type": "string"
      },
      "PagedProjectListSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ProjectListSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedProjectListSchemaOut",
        "type": "object"
      },
      "ProjectListSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "status_extended": {
            "title": "Status Extended",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_method": {
            "title": "Billing Method",
            "type": [
              "string",
              "null"
            ]
          },
          "billing_type": {
            "title": "Billing Type",
            "type": [
              "string",
              "null"
            ]
          },
          "currency": {
            "title": "Currency",
            "type": [
              "string",
              "null"
            ]
          },
          "po_number": {
            "title": "Po Number",
            "type": [
              "string",
              "null"
            ]
          },
          "project_manager_id": {
            "title": "Project Manager Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "budget_lines": {
            "items": {},
            "title": "Budget Lines",
            "type": "array"
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "customer_id",
          "customer_name",
          "name",
          "description",
          "status",
          "code",
          "status_extended",
          "billing_method",
          "billing_type",
          "currency",
          "po_number",
          "project_manager_id",
          "budget_lines",
          "start_date",
          "end_date",
          "record_status",
          "created_at",
          "updated_at"
        ],
        "title": "ProjectListSchemaOut",
        "type": "object"
      },
      "ProjectSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_name": {
            "default": "",
            "title": "Customer Name",
            "type": "string"
          },
          "classifications": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "attachments": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/AttachmentSchemaOut"
            },
            "title": "Attachments",
            "type": "array"
          },
          "name": {
            "maxLength": 256,
            "title": "Name",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectStatus",
                "maxLength": 16
              }
            ],
            "default": "active",
            "title": "Status"
          },
          "code": {
            "title": "Code",
            "maxLength": 64,
            "type": [
              "string",
              "null"
            ]
          },
          "status_extended": {
            "title": "Status Extended",
            "maxLength": 16,
            "type": [
              "string",
              "null"
            ]
          },
          "billing_method": {
            "title": "Billing Method",
            "maxLength": 32,
            "type": [
              "string",
              "null"
            ]
          },
          "billing_type": {
            "title": "Billing Type",
            "maxLength": 32,
            "type": [
              "string",
              "null"
            ]
          },
          "currency": {
            "title": "Currency",
            "maxLength": 3,
            "type": [
              "string",
              "null"
            ]
          },
          "po_number": {
            "title": "Po Number",
            "maxLength": 128,
            "type": [
              "string",
              "null"
            ]
          },
          "project_manager_id": {
            "title": "Project Manager Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "team_member_ids": {
            "title": "Team Member Ids",
            "type": [
              "object",
              "null"
            ]
          },
          "budget_lines": {
            "title": "Budget Lines",
            "type": [
              "object",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordStatus"
              }
            ],
            "default": "posted",
            "title": "Record Status"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "created_at",
          "updated_at"
        ],
        "title": "ProjectSchemaOut",
        "type": "object"
      },
      "BookListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "code": {
            "title": "Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "title": "BookListFilterSchema",
        "type": "object"
      },
      "BookSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "is_default": {
            "title": "Is Default",
            "type": "boolean"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "code",
          "name",
          "description",
          "is_default",
          "is_active"
        ],
        "title": "BookSchemaOut",
        "type": "object"
      },
      "PagedBookSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/BookSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedBookSchemaOut",
        "type": "object"
      },
      "PaperCheckTemplateListFilterSchema": {
        "properties": {
          "name": {
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "title": "Status",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PaperCheckTemplateListFilterSchema",
        "type": "object"
      },
      "BlockPositions": {
        "description": "Block positioning settings for paper check templates.",
        "properties": {
          "check_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "check-date",
              "content": "date",
              "x": 680,
              "y": 78,
              "width": 107,
              "height": 20,
              "font_size": 9
            }
          },
          "check_payee_name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "check-payee-name",
              "content": "vendor_name",
              "x": 115,
              "y": 116,
              "width": 160,
              "height": 20,
              "font_size": 9
            }
          },
          "check_amount_numeric": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "check-amount-numeric",
              "content": "amount_numeric",
              "x": 670,
              "y": 115,
              "width": 100,
              "height": 20,
              "font_size": 9
            }
          },
          "check_amount_alpha": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "check-amount-alpha",
              "content": "amount_alpha",
              "x": 47,
              "y": 143,
              "width": 610,
              "height": 20,
              "font_size": 9
            }
          },
          "check_vendor_address": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "check-vendor-address",
              "content": "vendor_address_block",
              "x": 65,
              "y": 169,
              "width": 307,
              "height": 90,
              "font_size": 9
            }
          },
          "check_record_memo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "check-record-memo",
              "content": "memo",
              "x": 92,
              "y": 253,
              "width": 333,
              "height": 20,
              "font_size": 9
            }
          },
          "check_number_top": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "check-number-top",
              "content": "check_number",
              "x": 697,
              "y": 357,
              "width": 66,
              "height": 28,
              "font_size": 9
            }
          },
          "stub1_check_number": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub1-check-number",
              "content": "check_number",
              "x": 685,
              "y": 575,
              "width": 100,
              "height": 20,
              "font_size": 9
            }
          },
          "stub1_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub1-date",
              "content": "date",
              "x": 74,
              "y": 360,
              "width": 107,
              "height": 20,
              "font_size": 9
            }
          },
          "stub1_vendor": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub1-vendor",
              "content": "vendor_name",
              "x": 188,
              "y": 360,
              "width": 160,
              "height": 20,
              "font_size": 9
            }
          },
          "stub1_record_number": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub1-record-number",
              "content": "record_number",
              "x": 229,
              "y": 408,
              "width": 133,
              "height": 20,
              "font_size": 9
            }
          },
          "stub1_record_number_label": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub1-record-number-label",
              "content": "Record number",
              "x": 50,
              "y": 408,
              "width": 120,
              "height": 20,
              "font_size": 9
            }
          },
          "stub1_amount_paid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub1-amount-paid",
              "content": "amount_paid",
              "x": 587,
              "y": 408,
              "width": 67,
              "height": 20,
              "font_size": 9
            }
          },
          "stub1_amount_paid_label": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub1-amount-paid-label",
              "content": "Amount paid",
              "x": 408,
              "y": 408,
              "width": 120,
              "height": 20,
              "font_size": 9
            }
          },
          "stub1_record_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub1-record-date",
              "content": "record_date",
              "x": 229,
              "y": 428,
              "width": 133,
              "height": 20,
              "font_size": 9
            }
          },
          "stub1_record_date_label": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub1-record-date-label",
              "content": "Record date",
              "x": 50,
              "y": 428,
              "width": 120,
              "height": 20,
              "font_size": 9
            }
          },
          "stub1_amount_due": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub1-amount-due",
              "content": "amount_due",
              "x": 587,
              "y": 428,
              "width": 67,
              "height": 20,
              "font_size": 9
            }
          },
          "stub1_amount_due_label": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub1-amount-due-label",
              "content": "Amount due",
              "x": 408,
              "y": 428,
              "width": 120,
              "height": 20,
              "font_size": 9
            }
          },
          "stub1_memo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub1-memo",
              "content": "memo",
              "x": 74,
              "y": 610,
              "width": 333,
              "height": 20,
              "font_size": 9
            }
          },
          "stub1_amount_numeric": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub1-amount-numeric",
              "content": "amount_numeric",
              "x": 690,
              "y": 610,
              "width": 100,
              "height": 20,
              "font_size": 9
            }
          },
          "stub1_check_number_bottom": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub1-check-number-bottom",
              "content": "check_number",
              "x": 697,
              "y": 689,
              "width": 66,
              "height": 28,
              "font_size": 9
            }
          },
          "stub2_check_number": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub2-check-number",
              "content": "check_number",
              "x": 690,
              "y": 946,
              "width": 100,
              "height": 20,
              "font_size": 9
            }
          },
          "stub2_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub2-date",
              "content": "date",
              "x": 74,
              "y": 696,
              "width": 107,
              "height": 20,
              "font_size": 9
            }
          },
          "stub2_vendor": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub2-vendor",
              "content": "vendor_name",
              "x": 188,
              "y": 696,
              "width": 160,
              "height": 20,
              "font_size": 9
            }
          },
          "stub2_record_number": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub2-record-number",
              "content": "record_number",
              "x": 229,
              "y": 744,
              "width": 133,
              "height": 20,
              "font_size": 9
            }
          },
          "stub2_record_number_label": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub2-record-number-label",
              "content": "Record number",
              "x": 50,
              "y": 744,
              "width": 120,
              "height": 20,
              "font_size": 9
            }
          },
          "stub2_amount_paid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub2-amount-paid",
              "content": "amount_paid",
              "x": 587,
              "y": 744,
              "width": 67,
              "height": 20,
              "font_size": 9
            }
          },
          "stub2_amount_paid_label": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub2-amount-paid-label",
              "content": "Amount paid",
              "x": 408,
              "y": 744,
              "width": 120,
              "height": 20,
              "font_size": 9
            }
          },
          "stub2_record_date": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub2-record-date",
              "content": "record_date",
              "x": 229,
              "y": 764,
              "width": 133,
              "height": 20,
              "font_size": 9
            }
          },
          "stub2_record_date_label": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub2-record-date-label",
              "content": "Record date",
              "x": 50,
              "y": 764,
              "width": 120,
              "height": 20,
              "font_size": 9
            }
          },
          "stub2_amount_due": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub2-amount-due",
              "content": "amount_due",
              "x": 587,
              "y": 764,
              "width": 67,
              "height": 20,
              "font_size": 9
            }
          },
          "stub2_amount_due_label": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub2-amount-due-label",
              "content": "Amount due",
              "x": 408,
              "y": 764,
              "width": 120,
              "height": 20,
              "font_size": 9
            }
          },
          "stub2_memo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub2-memo",
              "content": "memo",
              "x": 74,
              "y": 981,
              "width": 333,
              "height": 20,
              "font_size": 9
            }
          },
          "stub2_amount_numeric": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub2-amount-numeric",
              "content": "amount_numeric",
              "x": 690,
              "y": 981,
              "width": 100,
              "height": 20,
              "font_size": 9
            }
          },
          "stub2_check_number_bottom": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TextBlock"
              }
            ],
            "default": {
              "id": "stub2-check-number-bottom",
              "content": "check_number",
              "x": 697,
              "y": 689,
              "width": 66,
              "height": 28,
              "font_size": 9
            }
          }
        },
        "title": "BlockPositions",
        "type": "object"
      },
      "MarginsSettings": {
        "description": "Margins settings.",
        "properties": {
          "top": {
            "default": 0.15,
            "title": "Top",
            "type": "number"
          },
          "right": {
            "default": 0.25,
            "title": "Right",
            "type": "number"
          },
          "bottom": {
            "default": 0.15,
            "title": "Bottom",
            "type": "number"
          },
          "left": {
            "default": 0.25,
            "title": "Left",
            "type": "number"
          }
        },
        "title": "MarginsSettings",
        "type": "object"
      },
      "PageSettings": {
        "description": "Page layout settings for paper check templates.",
        "properties": {
          "page_size": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PageSizeSettings"
              }
            ],
            "default": {
              "width": 8.5,
              "height": 11
            }
          },
          "margins": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MarginsSettings"
              }
            ],
            "default": {
              "top": 0.15,
              "right": 0.25,
              "bottom": 0.15,
              "left": 0.25
            }
          },
          "check_offset_y": {
            "default": 0.35,
            "title": "Check Offset Y",
            "type": "number"
          },
          "line_spacing": {
            "default": 15,
            "title": "Line Spacing",
            "type": "number"
          },
          "font_size": {
            "default": 9,
            "title": "Font Size",
            "type": "number"
          }
        },
        "title": "PageSettings",
        "type": "object"
      },
      "PageSizeSettings": {
        "description": "Page size settings.",
        "properties": {
          "width": {
            "default": 8.5,
            "title": "Width",
            "type": "number"
          },
          "height": {
            "default": 11,
            "title": "Height",
            "type": "number"
          }
        },
        "title": "PageSizeSettings",
        "type": "object"
      },
      "PagedPaperCheckTemplateSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PaperCheckTemplateSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPaperCheckTemplateSchemaOut",
        "type": "object"
      },
      "PaperCheckTemplateSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "description": {
            "default": "",
            "title": "Description",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "created_by_id": {
            "title": "Created By Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "modified_by_id": {
            "title": "Modified By Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "page_settings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PageSettings"
              }
            ]
          },
          "block_positions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BlockPositions"
              }
            ]
          },
          "sample_data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SamplePaperCheckData"
              }
            ]
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "status",
          "created_at",
          "updated_at"
        ],
        "title": "PaperCheckTemplateSchemaOut",
        "type": "object"
      },
      "SamplePaperCheckData": {
        "properties": {
          "date": {
            "title": "Date",
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": [
              "string",
              "null"
            ]
          },
          "amount_numeric": {
            "title": "Amount Numeric",
            "type": [
              "string",
              "null"
            ]
          },
          "amount_alpha": {
            "title": "Amount Alpha",
            "type": [
              "string",
              "null"
            ]
          },
          "address_block": {
            "title": "Address Block",
            "type": [
              "string",
              "null"
            ]
          },
          "check_number": {
            "title": "Check Number",
            "type": [
              "string",
              "null"
            ]
          },
          "record_number": {
            "title": "Record Number",
            "type": [
              "string",
              "null"
            ]
          },
          "amount_paid": {
            "title": "Amount Paid",
            "type": [
              "string",
              "null"
            ]
          },
          "record_date": {
            "title": "Record Date",
            "type": [
              "string",
              "null"
            ]
          },
          "amount_due": {
            "title": "Amount Due",
            "type": [
              "string",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "SamplePaperCheckData",
        "type": "object"
      },
      "TextBlock": {
        "description": "Individual text block configuration.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "content": {
            "title": "Content",
            "type": "string"
          },
          "x": {
            "title": "X",
            "type": "integer"
          },
          "y": {
            "title": "Y",
            "type": "integer"
          },
          "width": {
            "default": 100,
            "title": "Width",
            "type": "integer"
          },
          "height": {
            "default": 16,
            "title": "Height",
            "type": "integer"
          },
          "font_size": {
            "default": 9,
            "title": "Font Size",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "content",
          "x",
          "y"
        ],
        "title": "TextBlock",
        "type": "object"
      },
      "ContractTemplateListFilterSchema": {
        "description": "List filter for Active/Archived tabs; status and name are PostgreSQL-only.",
        "properties": {
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContractTemplateStatus"
              },
              {
                "type": "null"
              }
            ],
            "default": "active",
            "description": "Tab: active or archived"
          },
          "name": {
            "description": "Filter by name (DB icontains)",
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "ContractTemplateListFilterSchema",
        "type": "object"
      },
      "ContractTemplateStatus": {
        "enum": [
          "active",
          "archived"
        ],
        "title": "ContractTemplateStatus",
        "type": "string"
      },
      "ContractTemplateObligationDefaultSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "item_id": {
            "title": "Item Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "item_name": {
            "title": "Item Name",
            "type": [
              "string",
              "null"
            ]
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "recognition_strategy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecognitionStrategy"
              },
              {
                "type": "null"
              }
            ]
          },
          "billing_frequency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillingCadence"
              },
              {
                "type": "null"
              }
            ]
          },
          "billing_interval": {
            "title": "Billing Interval",
            "type": [
              "integer",
              "null"
            ]
          },
          "recognition_frequency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecognitionCadence"
              },
              {
                "type": "null"
              }
            ]
          },
          "recognition_interval": {
            "title": "Recognition Interval",
            "type": [
              "integer",
              "null"
            ]
          },
          "billing_mode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillingMode"
              },
              {
                "type": "null"
              }
            ]
          },
          "sync_billing_with_recognition": {
            "title": "Sync Billing With Recognition",
            "type": [
              "boolean",
              "null"
            ]
          },
          "discount_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DiscountType"
              },
              {
                "type": "null"
              }
            ]
          },
          "skip_invoice_generation": {
            "title": "Skip Invoice Generation",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "required": [
          "id"
        ],
        "title": "ContractTemplateObligationDefaultSchemaOut",
        "type": "object"
      },
      "ContractTemplatePaymentSchemaOut": {
        "properties": {
          "type": {
            "title": "Type",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "body": {
            "title": "Body",
            "type": [
              "string",
              "null"
            ]
          },
          "link": {
            "title": "Link",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "ContractTemplatePaymentSchemaOut",
        "type": "object"
      },
      "ContractTemplateSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "title": "Currency Iso 4217 Code",
            "type": [
              "string",
              "null"
            ]
          },
          "memo": {
            "title": "Memo",
            "type": [
              "string",
              "null"
            ]
          },
          "term_id": {
            "title": "Term Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "default_ar_account_id": {
            "title": "Default Ar Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "billing_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "shipping_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AddressSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "billing_anchor_weekday": {
            "title": "Billing Anchor Weekday",
            "type": [
              "integer",
              "null"
            ]
          },
          "recognition_anchor_weekday": {
            "title": "Recognition Anchor Weekday",
            "type": [
              "integer",
              "null"
            ]
          },
          "payment": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContractTemplatePaymentSchemaOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "obligation_defaults": {
            "items": {
              "$ref": "#/components/schemas/ContractTemplateObligationDefaultSchemaOut"
            },
            "title": "Obligation Defaults",
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "status",
          "obligation_defaults"
        ],
        "title": "ContractTemplateSchemaOut",
        "type": "object"
      },
      "PagedContractTemplateSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ContractTemplateSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedContractTemplateSchemaOut",
        "type": "object"
      },
      "AccrualTemplateListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "title": "Name",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "title": "Status",
            "items": {
              "$ref": "#/components/schemas/AccrualTemplateStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "title": "AccrualTemplateListFilterSchema",
        "type": "object"
      },
      "AccrualTemplateStatus": {
        "enum": [
          "active",
          "archived"
        ],
        "title": "AccrualTemplateStatus",
        "type": "string"
      },
      "AccrualTemplateLineSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "account_id": {
            "title": "Account Id",
            "type": "integer"
          },
          "account_name": {
            "title": "Account Name",
            "type": [
              "string",
              "null"
            ]
          },
          "account_number": {
            "title": "Account Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_id": {
            "title": "Customer Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_id": {
            "title": "Vendor Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "customer_name": {
            "title": "Customer Name",
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_name": {
            "title": "Vendor Name",
            "type": [
              "string",
              "null"
            ]
          },
          "classifications": {
            "items": {
              "$ref": "#/components/schemas/RecordClassificationsSchemaOut"
            },
            "title": "Classifications",
            "type": "array"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "maxLength": 512,
            "type": [
              "string",
              "null"
            ]
          },
          "debit": {
            "title": "Debit",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "credit": {
            "title": "Credit",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "default": 1,
            "title": "Position",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "account_id",
          "customer_id",
          "vendor_id",
          "classifications"
        ],
        "title": "AccrualTemplateLineSchemaOut",
        "type": "object"
      },
      "AccrualTemplateSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "company_id": {
            "title": "Company Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "company_name": {
            "title": "Company Name",
            "type": [
              "string",
              "null"
            ]
          },
          "currency_iso_4217_code": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SystemCurrencies"
              },
              {
                "type": "null"
              }
            ]
          },
          "accrual_template_lines": {
            "items": {
              "$ref": "#/components/schemas/AccrualTemplateLineSchemaOut"
            },
            "title": "Accrual Template Lines",
            "type": "array"
          },
          "name": {
            "maxLength": 255,
            "title": "Name",
            "type": "string"
          },
          "memo": {
            "default": "",
            "title": "Memo",
            "maxLength": 512,
            "type": [
              "string",
              "null"
            ]
          },
          "reverse": {
            "default": true,
            "title": "Reverse",
            "type": "boolean"
          },
          "reversal_offset_days": {
            "default": 1,
            "title": "Reversal Offset Days",
            "type": "integer"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AccrualTemplateStatus",
                "maxLength": 20
              }
            ],
            "default": "active",
            "title": "Status"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "id",
          "accrual_template_lines",
          "name",
          "created_at",
          "updated_at"
        ],
        "title": "AccrualTemplateSchemaOut",
        "type": "object"
      },
      "PagedAccrualTemplateSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/AccrualTemplateSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedAccrualTemplateSchemaOut",
        "type": "object"
      },
      "PublicWithholdingTaxRateFilterSchema": {
        "properties": {
          "country_code": {
            "title": "Country Code",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": [
              "boolean",
              "null"
            ]
          },
          "active_on": {
            "description": "Return only the rates that are valid on this date.",
            "title": "Active On",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicWithholdingTaxRateFilterSchema",
        "type": "object"
      },
      "PagedPublicWithholdingTaxRateSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicWithholdingTaxRateSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicWithholdingTaxRateSchemaOut",
        "type": "object"
      },
      "PublicWithholdingTaxRateSchemaOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "country_code": {
            "title": "Country Code",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "rate": {
            "description": "The rate as a fraction, for example `0.100000` for 10%.",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,6}0*$",
            "title": "Rate",
            "type": "string"
          },
          "valid_from": {
            "format": "date",
            "title": "Valid From",
            "type": "string"
          },
          "valid_to": {
            "title": "Valid To",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean"
          },
          "is_system": {
            "title": "Is System",
            "type": "boolean"
          },
          "description": {
            "title": "Description",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "country_code",
          "name",
          "rate",
          "valid_from",
          "is_active",
          "is_system"
        ],
        "title": "PublicWithholdingTaxRateSchemaOut",
        "type": "object"
      },
      "PublicWithholdingTaxRemittanceListFilterSchema": {
        "properties": {
          "search": {
            "title": "Search",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "title": "Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "company_id": {
            "title": "Company Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "tax_agency_id": {
            "title": "Tax Agency Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "liability_account_id": {
            "title": "Liability Account Id",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "start_date": {
            "title": "Start Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "title": "End Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "title": "Record Status",
            "items": {
              "$ref": "#/components/schemas/RecordStatus"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "number": {
            "title": "Number",
            "items": {
              "type": "integer"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "updated_after": {
            "title": "Updated After",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "updated_before": {
            "title": "Updated Before",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "title": "PublicWithholdingTaxRemittanceListFilterSchema",
        "type": "object"
      },
      "PagedPublicWithholdingTaxRemittanceListSchemaOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PublicWithholdingTaxRemittanceListSchemaOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedPublicWithholdingTaxRemittanceListSchemaOut",
        "type": "object"
      },
      "PublicWithholdingTaxRemittanceListSchemaOut": {
        "properties": {
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "title": "Currency Iso 4217 Code",
            "type": "string"
          },
          "tax_agency_id": {
            "title": "Tax Agency Id",
            "type": "integer"
          },
          "tax_agency_name": {
            "title": "Tax Agency Name",
            "type": "string"
          },
          "bank_account_id": {
            "title": "Bank Account Id",
            "type": "integer"
          },
          "liability_account_id": {
            "title": "Liability Account Id",
            "type": "integer"
          },
          "reference_number": {
            "title": "Reference Number",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "total": {
            "description": "Sum of the line amounts, in the company currency",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Total",
            "type": "string"
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "internal_id",
          "number",
          "date",
          "company_id",
          "company_name",
          "currency_iso_4217_code",
          "tax_agency_id",
          "tax_agency_name",
          "bank_account_id",
          "liability_account_id",
          "record_status",
          "total",
          "created_at",
          "updated_at"
        ],
        "title": "PublicWithholdingTaxRemittanceListSchemaOut",
        "type": "object"
      },
      "PublicWithholdingTaxRemittanceSchemaOut": {
        "properties": {
          "internal_id": {
            "title": "Internal Id",
            "type": "integer"
          },
          "number": {
            "title": "Number",
            "type": "integer"
          },
          "code": {
            "title": "Code",
            "type": [
              "string",
              "null"
            ]
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "currency_iso_4217_code": {
            "title": "Currency Iso 4217 Code",
            "type": "string"
          },
          "tax_agency_id": {
            "title": "Tax Agency Id",
            "type": "integer"
          },
          "tax_agency_name": {
            "title": "Tax Agency Name",
            "type": "string"
          },
          "bank_account_id": {
            "title": "Bank Account Id",
            "type": "integer"
          },
          "liability_account_id": {
            "title": "Liability Account Id",
            "type": "integer"
          },
          "reference_number": {
            "title": "Reference Number",
            "type": [
              "string",
              "null"
            ]
          },
          "record_status": {
            "$ref": "#/components/schemas/RecordStatus"
          },
          "total": {
            "description": "Sum of the line amounts, in the company currency",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Total",
            "type": "string"
          },
          "lines": {
            "items": {
              "$ref": "#/components/schemas/WithholdingTaxRemittanceLineOut"
            },
            "title": "Lines",
            "type": "array"
          },
          "created_at": {
            "description": "Date and time the record was created",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "updated_at": {
            "description": "Date and time the record was last updated",
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          }
        },
        "required": [
          "internal_id",
          "number",
          "date",
          "company_id",
          "company_name",
          "currency_iso_4217_code",
          "tax_agency_id",
          "tax_agency_name",
          "bank_account_id",
          "liability_account_id",
          "record_status",
          "total",
          "lines",
          "created_at",
          "updated_at"
        ],
        "title": "PublicWithholdingTaxRemittanceSchemaOut",
        "type": "object"
      },
      "WithholdingTaxRemittanceLineOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "withheld_entry_id": {
            "title": "Withheld Entry Id",
            "type": "integer"
          },
          "amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Amount",
            "type": "string"
          },
          "record_type": {
            "title": "Record Type",
            "type": [
              "string",
              "null"
            ]
          },
          "record_id": {
            "title": "Record Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_number": {
            "title": "Record Number",
            "type": [
              "integer",
              "null"
            ]
          },
          "record_code": {
            "title": "Record Code",
            "type": [
              "string",
              "null"
            ]
          },
          "date": {
            "title": "Date",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "vendor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WithholdingTaxRemittanceVendorOut"
              },
              {
                "type": "null"
              }
            ]
          },
          "rate_name": {
            "title": "Rate Name",
            "type": [
              "string",
              "null"
            ]
          },
          "rate": {
            "examples": [
              "0.100000"
            ],
            "title": "Rate",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "type": [
              "string",
              "null"
            ]
          },
          "net_amount": {
            "title": "Net Amount",
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "withheld_entry_id",
          "amount"
        ],
        "title": "WithholdingTaxRemittanceLineOut",
        "type": "object"
      },
      "WithholdingTaxRemittanceVendorOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "WithholdingTaxRemittanceVendorOut",
        "type": "object"
      },
      "PublicWithholdingTaxRemittanceLineIn": {
        "properties": {
          "withheld_entry_id": {
            "description": "A `withheld_entry_id` from `GET /withholding-tax/open-items/`.",
            "title": "Withheld Entry Id",
            "type": "integer"
          }
        },
        "required": [
          "withheld_entry_id"
        ],
        "title": "PublicWithholdingTaxRemittanceLineIn",
        "type": "object"
      },
      "PublicWithholdingTaxRemittanceSchemaCreateIn": {
        "properties": {
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "tax_agency_id": {
            "description": "The ID of a vendor whose `vendor_type` is `tax_agency`.",
            "title": "Tax Agency Id",
            "type": "integer"
          },
          "bank_account_id": {
            "description": "The ID of the bank or credit card account that paid the tax agency.",
            "title": "Bank Account Id",
            "type": "integer"
          },
          "liability_account_id": {
            "description": "The ID of the withholding tax payable account that the withheld amounts are on.",
            "title": "Liability Account Id",
            "type": "integer"
          },
          "reference_number": {
            "title": "Reference Number",
            "maxLength": 128,
            "minLength": 1,
            "type": [
              "string",
              "null"
            ]
          },
          "lines": {
            "items": {
              "$ref": "#/components/schemas/PublicWithholdingTaxRemittanceLineIn"
            },
            "title": "Lines",
            "type": "array"
          }
        },
        "required": [
          "date",
          "company_id",
          "tax_agency_id",
          "bank_account_id",
          "liability_account_id",
          "lines"
        ],
        "title": "PublicWithholdingTaxRemittanceSchemaCreateIn",
        "type": "object"
      },
      "WithholdingTaxOpenItemsQuery": {
        "properties": {
          "company_id": {
            "title": "Company Id",
            "type": "integer"
          },
          "liability_account_id": {
            "title": "Liability Account Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "tax_agency_id": {
            "title": "Tax Agency Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "withholding_tax_rate_id": {
            "title": "Withholding Tax Rate Id",
            "type": [
              "integer",
              "null"
            ]
          },
          "date_from": {
            "title": "Date From",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          },
          "date_to": {
            "title": "Date To",
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "company_id"
        ],
        "title": "WithholdingTaxOpenItemsQuery",
        "type": "object"
      },
      "PagedWithholdingTaxOpenItemOut": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/WithholdingTaxOpenItemOut"
            },
            "title": "Items",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "count"
        ],
        "title": "PagedWithholdingTaxOpenItemOut",
        "type": "object"
      },
      "WithholdingTaxOpenItemOut": {
        "properties": {
          "withheld_entry_id": {
            "title": "Withheld Entry Id",
            "type": "integer"
          },
          "record_type": {
            "title": "Record Type",
            "type": "string"
          },
          "record_id": {
            "title": "Record Id",
            "type": "integer"
          },
          "record_number": {
            "title": "Record Number",
            "type": "integer"
          },
          "record_code": {
            "title": "Record Code",
            "type": [
              "string",
              "null"
            ]
          },
          "vendor": {
            "$ref": "#/components/schemas/WithholdingTaxOpenItemVendorOut"
          },
          "date": {
            "format": "date",
            "title": "Date",
            "type": "string"
          },
          "rate_name": {
            "title": "Rate Name",
            "type": [
              "string",
              "null"
            ]
          },
          "rate": {
            "examples": [
              "0.100000"
            ],
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
            "title": "Rate",
            "type": "string"
          },
          "net_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Net Amount",
            "type": "string"
          },
          "withheld_amount": {
            "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$",
            "title": "Withheld Amount",
            "type": "string"
          }
        },
        "required": [
          "withheld_entry_id",
          "record_type",
          "record_id",
          "record_number",
          "vendor",
          "date",
          "rate",
          "net_amount",
          "withheld_amount"
        ],
        "title": "WithholdingTaxOpenItemOut",
        "type": "object"
      },
      "WithholdingTaxOpenItemVendorOut": {
        "properties": {
          "id": {
            "title": "Id",
            "type": "integer"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "title": "WithholdingTaxOpenItemVendorOut",
        "type": "object"
      },
      "AuthorizeResponse": {
        "properties": {
          "authorization_url": {
            "title": "Authorization Url",
            "type": "string"
          }
        },
        "required": [
          "authorization_url"
        ],
        "title": "AuthorizeResponse",
        "type": "object"
      },
      "ErrorResponse": {
        "properties": {
          "error": {
            "title": "Error",
            "type": "string"
          }
        },
        "required": [
          "error"
        ],
        "title": "ErrorResponse",
        "type": "object"
      },
      "AuthorizeRequest": {
        "properties": {
          "redirect_uri": {
            "title": "Redirect Uri",
            "type": "string"
          },
          "code_challenge": {
            "title": "Code Challenge",
            "type": "string"
          },
          "code_challenge_method": {
            "$ref": "#/components/schemas/CodeChallengeMethod"
          },
          "state": {
            "title": "State",
            "type": "string"
          }
        },
        "required": [
          "redirect_uri",
          "code_challenge",
          "code_challenge_method",
          "state"
        ],
        "title": "AuthorizeRequest",
        "type": "object"
      },
      "CodeChallengeMethod": {
        "enum": [
          "S256"
        ],
        "title": "CodeChallengeMethod",
        "type": "string"
      },
      "TokenResponse": {
        "properties": {
          "api_key": {
            "title": "Api Key",
            "type": "string"
          },
          "organization_id": {
            "title": "Organization Id",
            "type": "integer"
          },
          "user_email": {
            "title": "User Email",
            "type": "string"
          }
        },
        "required": [
          "api_key",
          "organization_id",
          "user_email"
        ],
        "title": "TokenResponse",
        "type": "object"
      },
      "GrantType": {
        "enum": [
          "authorization_code"
        ],
        "title": "GrantType",
        "type": "string"
      },
      "TokenRequest": {
        "properties": {
          "grant_type": {
            "$ref": "#/components/schemas/GrantType"
          },
          "code": {
            "title": "Code",
            "type": "string"
          },
          "code_verifier": {
            "title": "Code Verifier",
            "type": "string"
          },
          "redirect_uri": {
            "title": "Redirect Uri",
            "type": "string"
          }
        },
        "required": [
          "grant_type",
          "code",
          "code_verifier",
          "redirect_uri"
        ],
        "title": "TokenRequest",
        "type": "object"
      }
    }
  },
  "servers": [
    {
      "url": "https://api.dualentry.com",
      "description": "Production environment"
    }
  ],
  "tags": [
    {
      "name": "Health",
      "description": "Monitor API availability and service status. Use these endpoints to verify connectivity and check if the API is operational."
    },
    {
      "name": "Webhooks",
      "description": "Register webhook endpoints to receive real-time event notifications when records change in your organization. Manage subscriptions, view available topics, and inspect delivery history.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Accounts",
      "description": "Manage your chart of accounts. Create and maintain the accounts used to categorize financial transactions, including assets, liabilities, equity, revenue, and expenses.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Reporting",
      "description": "Reporting facts and balances: account balances as of a date; paginated general-ledger lines; dense trial-balance facts (account x company x month); chart-of-accounts facts; and consolidated rates. Row shapes match the `general_ledger`, `trial_balance`, `chart_of_accounts`, and `consolidated_rates` tables in your data export."
    },
    {
      "name": "Budgets",
      "description": "Read income statement and balance sheet budget settings. Monthly cell values, actuals comparisons, and accounts are available through separate budget routes."
    },
    {
      "name": "Companies",
      "description": "Access and manage company information. Retrieve details about your organization including legal name, tax identifiers, addresses, and accounting preferences.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Period Locks",
      "description": "Period locks for bills, invoices, other ledger activity, non-ledger records, and tax schedules.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Payment Methods",
      "description": "List payment methods. Filter by id to resolve payment_method_id on a payment record. V2 API only."
    },
    {
      "name": "Terms",
      "description": "List payment terms. Use a term `id` as `term_id` on a record that has a due date."
    },
    {
      "name": "Books",
      "description": "List accounting books. Use book ids in `book_ids` on a journal entry. Depreciation books are a separate resource."
    },
    {
      "name": "Projects",
      "description": "List projects. Use a project `id` as `billable_project_id` on a billable line."
    },
    {
      "name": "Contract Templates",
      "description": "List contract templates. Use a template `id` as `contract_template_id` on a contract."
    },
    {
      "name": "Accrual Templates",
      "description": "List accrual templates. Use a template `id` as `accrual_template_id` on a journal entry."
    },
    {
      "name": "Paper Check Templates",
      "description": "List paper check templates. Use a template `id` as `template_id` when you print a check."
    },
    {
      "name": "Customers",
      "description": "Manage customer records. Create, update, and track customers who purchase goods or services from your organization, including contact information, billing addresses, and payment terms.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Contracts",
      "description": "Manage revenue recognition contracts. Create, retrieve, and update contracts with performance obligations, manage obligation usage, and create change orders (v2).\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Items",
      "description": "Manage products and services. Define items that appear on invoices and bills, including pricing, descriptions, and associated accounts for revenue or expense tracking.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Vendors",
      "description": "Manage vendor and supplier records. Track businesses and individuals from whom you purchase goods or services, including contact details, payment terms, and tax information.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Journal Entries",
      "description": "Create and manage manual journal entries. Create and update post a general ledger transaction.\n\nA reversal date posts a reversing transaction. Book ids assign accounting books. An aging reason on an accounts receivable or accounts payable line excludes that line from aging. The save can link a related journal entry and an accrual template.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Invoices",
      "description": "Manage sales invoices. Create and track invoices sent to customers for goods or services rendered, including line items, taxes, discounts, and payment status.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Quotes",
      "description": "Create, submit, and send CPQ quotes, with line billing frequencies, multi-year ramps, recipients and signing order, and totals by billing frequency. Requires the CPQ subscription.\n\nSave a quote with `record_status` `posted` to submit it for approval. Approvers approve or reject it in DualEntry.\n\nSend your own quote PDF. This API does not render one.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Sales Orders",
      "description": "Create and manage sales orders. Track customer orders for goods or services before invoicing, including line items, quantities, fulfillment status, and invoicing progress.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Bills",
      "description": "Manage vendor bills and payables. Record and track bills received from vendors for goods or services purchased, including line items, due dates, and payment tracking.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Customer Prepayments",
      "description": "Track advance payments from customers. Access prepayments received before goods or services are delivered, which can be applied to future invoices.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Customer Prepayment Applications",
      "description": "Apply customer prepayments and credits to invoices. Record applications of prepayments or credit memos to reduce invoice balances.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Customer Deposits",
      "description": "Manage customer deposit transactions. Record and track deposits received from customers as security or partial payment, held in liability accounts until earned or refunded.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Customer Refunds",
      "description": "Process and track customer refunds. Record refunds issued to customers for overpayments, returns, or cancelled transactions.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Customer Credits",
      "description": "Manage credit memos for customers. Issue credits for returned goods, billing adjustments, or discounts that reduce customer balances or can be applied to future invoices.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Cash Sales",
      "description": "Record immediate cash sales transactions. Track sales where payment is received at the time of sale, including point-of-sale transactions and cash receipts.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Customer Payments",
      "description": "Record and manage customer payments. Track payments received from customers and apply them to outstanding invoices, including partial payments and overpayments.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Recurring Invoices",
      "description": "Automate recurring billing. Set up and manage templates for invoices that are automatically generated on a regular schedule (e.g., monthly subscriptions).\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Recurring Bills",
      "description": "Automate recurring expenses. Configure templates for bills that repeat on a regular basis (e.g., monthly rent, subscriptions) to streamline expense tracking.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Recurring Journal Entries",
      "description": "Automate recurring journal entries. Create templates for journal entries that occur regularly (e.g., monthly depreciation, amortization) to ensure consistent accounting treatment.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Classifications",
      "description": "Manage custom classification dimensions. Create and maintain classification categories (e.g., departments, locations, projects) used to tag and analyze transactions across multiple dimensions.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Classifications Lines",
      "description": "Manage classification values. Define the specific values within each classification category that can be assigned to transaction line items for detailed reporting and analysis.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Custom Fields",
      "description": "Manage custom field definitions. Extend records with organization-specific attributes: name, type (text, number, boolean, date, single_select, multi_select, currency, link, paragraph), default value, options, and which record types (invoice, bill, customer, vendor, etc.) and companies the field applies to. Values are set via the `custom_fields` attribute on each record's create/update endpoint.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Purchase Orders",
      "description": "Create and track purchase orders. Manage formal requests to vendors for goods or services, including approval workflows, receiving tracking, and bill matching.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Vendor Payments",
      "description": "Record vendor payments and apply them to bills, vendor credits, and journal entry lines.\n\nCreate and update post a general ledger transaction. The save also computes realized, rounding, and matching gain or loss.\n\nSend attachments to replace the file list. `PATCH` changes only the sent fields. `POST /{number}/attachments/` adds files and keeps existing files.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Vendor Prepayments",
      "description": "Track advance payments to vendors. Record prepayments made before goods or services are received, which can be applied to future bills.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Vendor Prepayment Applications",
      "description": "Apply vendor prepayments to bills. Record applications of prepayments to reduce bill balances and track amounts owed.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Vendor Credits",
      "description": "Manage vendor credit memos. Record credits from vendors for returned goods, billing adjustments, or discounts that reduce amounts owed or can be applied to future bills.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Vendor Refunds",
      "description": "Process and track vendor refunds. Record refunds received from vendors for overpayments, returns, or cancelled transactions.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Paper Checks",
      "description": "Manage paper check printing. Create, queue, and batch print paper checks for vendor payments, direct expenses, vendor prepayments, and customer refunds.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Direct Expenses",
      "description": "Record direct expense transactions. Track payments made directly from a bank or credit card account for expenses, without going through the accounts payable process.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Bank Transfers",
      "description": "Manage bank-to-bank transfers. Record and track transfers between bank and credit card accounts, including multi-currency transfers with exchange rate handling.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Bank Match",
      "description": "Reconcile bank-feed rows against accounting transactions. List bank rows, trigger the matching pipeline, read AI suggestions, and confirm or undo matches. V2 API only.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Bank Connections",
      "description": "Register and list customer-built inbound bank connection feeds. Create connections and accounts with `customer_api` as `source_type`, then push transactions separately. V2 API only.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Fixed Assets",
      "description": "Manage fixed assets and capital equipment. Create, update, and track long-lived tangible assets including depreciation schedules, account assignments, and asset lifecycle management.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Fixed Asset Classes",
      "description": "List fixed asset classes used to set `fixed_asset_class_id` on an asset."
    },
    {
      "name": "Intercompany Journal Entries",
      "description": "Create and manage intercompany journal entries. Record GL activity that spans two or more companies within the same organization, with per-line company assignment and automatic intercompany elimination.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Depreciation Books",
      "description": "Discover available depreciation books for multi-book depreciation. Each organization has a posting book (BOOK) and may have additional tax books (FEDERAL, AMT, STATE_*). V2 API only."
    },
    {
      "name": "VAT Rates",
      "description": "Look up available VAT (Value Added Tax) rates for your organization. Use these IDs as `vat_rate_id` on transaction line items. Rates are scoped by country and include standard, reduced, zero-rated, exempt, and reverse charge types. V2 API only."
    },
    {
      "name": "GST Tax Rates",
      "description": "Look up available GST (Goods and Services Tax) rates for your organization. Use these IDs as `gst_tax_rate_id` on transaction line items. Covers AU, NZ, SG, IN, CA GST regimes and MY SST, with per-component breakdowns (e.g. CGST+SGST for India). V2 API only."
    },
    {
      "name": "Withholding Tax Rates",
      "description": "Look up the withholding tax rates of your organization. Use these IDs as `withholding_tax_rate_id` on bill and direct expense lines, and as `default_withholding_tax_rate_id` on vendors. Not available on V1."
    },
    {
      "name": "Withholding Tax Remittances",
      "description": "Record a payment to a tax agency for the withheld amounts of posted bills, direct expenses, and vendor credits. List the open withheld amounts, then create a remittance with their `withheld_entry_id` values. A posted remittance moves the amount from the withholding tax payable account to the bank account. Not available on V1."
    },
    {
      "name": "Product Tax Codes",
      "description": "Manage organization product tax codes and discover global product tax codes. Use these IDs as `product_tax_code_id` on item payloads. V2 API only."
    },
    {
      "name": "Approval Policies",
      "description": "Manage approval workflows and policies. Define approval rules, steps, conditions, and approvers for different record types. Monitor workflow execution states and view approval history.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Inbox",
      "description": "View pending approvals and approval status. Access transactions and records awaiting approval across the organization, including full approval workflow details, approvers, and action history.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "Statistical Journals",
      "description": "Record non-monetary quantity values, such as headcount or square footage. Statistical journals never post to the general ledger.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    },
    {
      "name": "E-invoicing",
      "description": "Read the e-invoicing settings of the organization, the registrations of its companies, and the e-invoice filing of an invoice or a customer credit with its events and legal files. Retry a failed filing, refresh a started one, check a customer before a post, and set the e-invoicing identifiers of a customer. The settings, the registrations and the company identifiers are read-only: change them in the DualEntry app.\n\n**Subscription.** Every route except the status route needs the e-invoicing subscription. Without it, the route answers `402` before it checks the permission. The filing, its legal files and the send rules of a record that DualEntry filed still answer after the subscription ends. An organization without the subscription posts, sends and archives invoices as before.\n\n**Permissions.** The settings, the registrations and the event list need `e_invoicing:view`.\n\nThe filing of a record follows the permission of its record: `invoice:view` or `customer_credit:view` to read it, `invoice:edit` or `customer_credit:edit` to retry it.\n\nThe identifiers need `e_invoicing:view` with `customer:view` or `vendor:view` to read, and `e_invoicing:edit` with `customer:edit` to write, as in the app. A key that the CLI sign-in made reaches only the companies of its user.\n\n**Error codes.** A refused e-invoicing request carries a stable `error_code`:\n\n- `e_invoicing_send_held`: the authority must clear the invoice before the customer gets it.\n- `e_invoicing_legal_pdf_missing`: the authority PDF is not stored yet.\n- `e_invoicing_validation`: the authority refuses the document data.\n- `e_invoicing_setup`: the setup of the country is broken.\n- `e_invoicing_engine`: the e-invoicing engine did not answer or refused the request.\n- `e_invoicing_not_retryable`: the filing is not failed or rejected.\n- `e_invoicing_error`: any other refusal.\n\nA record save that e-invoicing refuses, such as a change of a cleared invoice, answers `422` with the reason under the `e_invoicing` key. Not in v1."
    },
    {
      "name": "Data Exports",
      "description": "Request off-cycle refreshes of your organization's data export to its configured destination (for example a Snowflake warehouse) and poll their status. Exports also run automatically on a schedule; these requests are an on-demand supplement. Requests are accepted and orchestrated by DualEntry; there is no SLA on when a run starts.\n\nIf your organization connects an integration that syncs this resource with a third-party system, a change you make here can also be applied in that system, immediately or on a later sync. See the documentation for each integration for details."
    }
  ],
  "x-tagGroups": [
    {
      "name": "Monitoring",
      "tags": [
        "Health"
      ]
    },
    {
      "name": "Developers",
      "tags": [
        "Webhooks",
        "Data Exports"
      ]
    },
    {
      "name": "Accounting Setup",
      "tags": [
        "Accounts",
        "Items",
        "Classifications",
        "Classifications Lines",
        "Custom Fields",
        "Exchange Rates",
        "Projects"
      ]
    },
    {
      "name": "Organization",
      "tags": [
        "Companies",
        "Period Locks",
        "Payment Methods",
        "Terms",
        "Books"
      ]
    },
    {
      "name": "Governance",
      "tags": [
        "Approval Policies",
        "Inbox"
      ]
    },
    {
      "name": "Financial Planning",
      "tags": [
        "Budgets"
      ]
    },
    {
      "name": "Reporting",
      "tags": [
        "Reporting"
      ]
    },
    {
      "name": "Transactions",
      "tags": [
        "Journal Entries",
        "Accrual Templates",
        "Intercompany Journal Entries",
        "Recurring Journal Entries",
        "Statistical Journals"
      ]
    },
    {
      "name": "Financial & Banking",
      "tags": [
        "Bank Transfers",
        "Bank Match",
        "Bank Connections"
      ]
    },
    {
      "name": "Money In",
      "tags": [
        "Invoices",
        "Contracts",
        "Contract Templates",
        "Quotes",
        "Sales Orders",
        "Recurring Invoices",
        "Customers",
        "Customer Payments",
        "Customer Prepayments",
        "Customer Prepayment Applications",
        "Customer Deposits",
        "Customer Refunds",
        "Customer Credits",
        "Cash Sales"
      ]
    },
    {
      "name": "Money Out",
      "tags": [
        "Bills",
        "Recurring Bills",
        "Purchase Orders",
        "Direct Expenses",
        "Vendors",
        "Vendor Payments",
        "Vendor Prepayments",
        "Vendor Prepayment Applications",
        "Vendor Credits",
        "Vendor Refunds",
        "Withholding Tax Remittances",
        "Paper Checks",
        "Paper Check Templates"
      ]
    },
    {
      "name": "Assets",
      "tags": [
        "Fixed Assets",
        "Fixed Asset Classes",
        "Depreciation Books"
      ]
    },
    {
      "name": "Tax",
      "tags": [
        "VAT Rates",
        "GST Tax Rates",
        "Withholding Tax Rates",
        "Product Tax Codes",
        "Taxes",
        "E-invoicing"
      ]
    }
  ]
}